ZeroDay Brief
CVE-2026-129182 Exploit code public

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
More from this vendor

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.

CWE-416CWE-459

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.

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

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”