You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The unserialize function with ArrayIterator leads to NULL pointer dereference when object cloned #22049
Executing this PHP code results in Segmentation fault due to corrupted pointer access, leading to Denial of Service (DoS).
Listing 3.
$ ./php-src/sapi/cli/php poc.php
Deprecated: Creation of dynamic property ArrayIterator::$0 is deprecated in /home/administrator/Temp/poc.php on line 8
Deprecated: Creation of dynamic property ArrayIterator::$1 is deprecated in /home/administrator/Temp/poc.php on line 8
Segmentation fault (core dumped)
NULL pointer dereference leads to process crash, causing Denial of Service. In ZTS mode, this can stop all currently served requests in the process.
PHP Version
PHP 8.6.0-dev (cli) (built: May 13 2026 08:43:46) (NTS DEBUG)
Activity
DanielEScherzer commentedon May 15, 2026
Exists since at least 8.3, https://3v4l.org/SVARn#v
Fix phpGH-22049: Prevent crash when cloning unserialized ArrayIterato…
Fix phpGH-22049: Prevent crash when cloning unserialized ArrayIterato…
ndossche commentedon Nov 26, 2026
Resolved by #25495