Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown.
- CVSS
- 9.2Critical
- Chance of exploitation (EPSS)
- 24%
- Published
- Nov 19, 2026
- In the news
- Not yet
What to do
A critical memory corruption flaw in PHP that can be attacked over the network without logging in. Exploit code is public, so patch it soon.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 8.5.13
Affected versions
- PHP
- 8.5.0 to before 8.5.13
Description
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown.
A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution.
This issue affects PHP versions 8.5.* before 8.5.13.
Affected products
Get alerts for these →Timeline 9
Latest change: googlesky/CVE-2026-129182: PHP fatal backtrace repopulated after executor cleanup at shutdown. Fixed in 8.2.36/8.3.37/8.4.28/8.5.13. Differential: stale backtrace on vuln, suppressed on fixed (Nov 26, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Nov 26, 2026
Wed, Nov 25, 2026
Fri, Nov 20, 2026
- DetectionTenable Web App Scanning plugin 115857: PHP < 8.2.36 Multiple VulnerabilitiesTenable
- DetectionTenable Web App Scanning plugin 115854: PHP 8.5.x < 8.5.13 Multiple VulnerabilitiesTenable
- DetectionTenable Web App Scanning plugin 115855: PHP 8.4.x < 8.4.28 Multiple VulnerabilitiesTenable
- DetectionTenable Web App Scanning plugin 115856: PHP 8.3.x < 8.3.37 Multiple VulnerabilitiesTenable
Thu, Nov 19, 2026
Exploit code
Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.
References 1
- github.com /php/php-src/security/advisories/GHSA-2fjv-p558-g82m