A shutdown diagnostic can recreate a stored backtrace after executor cleanup. A later request on the same worker may read that backtrace after its request memory has been freed.The PHP CNA published the record on 19 November 2026 and assigns a Critical CVSS 4.0 score of 9.2. PHP 8.5.0 through 8.5.12 are affected. PHP 8.5.13 contains the fix.
What it allows
How Does CVE-2026-129182 Work?
PHP 8.5.12 cleared a stale fatal-error backtrace during executor shutdown to address an earlier flaw. The new advisory identifies later shutdown paths that can recreate it while modified INI settings are restored. Once the request heap is released, the saved backtrace points into freed memory.
A later request must reach an early diagnostic on the same PHP-FPM or mod_php worker, before executor initialization. Reading the stale backtrace can corrupt memory or crash the worker. PHP says remote code execution may be possible, but the two documented restoration cases have demonstrated use after free and crashes, not RCE.
The shutdown diagnostic requires a specific per-path configuration. One case restores a global max_memory_limit after a path override while memory use exceeds that limit. Another restores global zlib.output_compression before a conflicting path-specific output_handler setting is cleared.
The later early diagnostic can arise from Apache per-directory configuration. For PHP-FPM, the front end must send a diagnostic-producing PHP_VALUE or PHP_ADMIN_VALUE FastCGI parameter. Ordinary FPM pool settings and .user.ini alone do not create that early diagnostic. See our PHP security release coverage for the wider release context.
Who is affected
Version Check
| Release Line | Affected Range | Fixed In |
|---|---|---|
| 8.5.x | 8.5.0 to before 8.5.13 | 8.5.13 |
For distribution packages and custom builds, check the supplier’s advisory.
Verify the running web worker and effective per-path settings; distribution backports need vendor patch confirmation.
Which PHP Versions and Configurations Are Affected by CVE-2026-129182?
The PHP CNA lists PHP 8.5.0 inclusive through versions before 8.5.13. The vendor lists 8.5.13 as patched. This range describes the vulnerable engine; the documented remote path additionally requires the shutdown and early-diagnostic conditions above.
Both PHP-FPM and mod_php can encounter the described shutdown cases. The max_memory_limit override requires administrative configuration. A .user.ini file can supply the zlib settings, but cannot change max_memory_limit. Review effective settings per path and worker, not only the global configuration.
Inventory the running web-worker version and verify how the front end supplies PHP configuration. A CLI version or configuration check alone may not represent the affected worker. Record the patched deployment in your patch management process.
Use Vulnerability Intelligence to prioritize the affected application inventory while engineers confirm the effective runtime configuration. This is an inventory recommendation, not a claim that a network scan can prove the per-path conditions.
Timeline
- 2026-11-19
The PHP Group published the CVE record and security advisory.
- 2026-11-19
PHP 8.5.13 was released with the CVE-2026-129182 fix.
What to do
-
Identify affected web workers
Inventory PHP 8.5.0 through 8.5.12 across PHP-FPM and mod_php deployments. Check effective per-path settings and the front-end configuration for the documented conditions.
-
Upgrade to PHP 8.5.13
Apply PHP 8.5.13 or a vendor-documented backport. Restart affected workers, then confirm that the running web-worker version or documented package fix is present.
-
Use the vendor's temporary workaround
If patching is delayed, administratively set fatal_error_backtraces=0 and restart all workers. Confirm that request-specific configuration cannot re-enable the setting.
-
Review worker failures
Review PHP and application logs for fatal diagnostics followed by abnormal exits on exposed workers. This is a defensive review suggestion, not a signature or proof of exploitation.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-129182 in Brandefense Atlas
The Atlas record of CVE-2026-129182: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does every PHP 8.5 deployment expose the remote path?
No. PHP describes specific per-path shutdown errors and an early diagnostic on a subsequent request in the same worker. Check the effective web configuration before assessing exposure.
Which version fixes CVE-2026-129182?
PHP 8.5.13 contains the fix. Confirm the running web-worker version after restarting, or verify a vendor-documented backport for a distribution package.
Can .user.ini alone satisfy the FPM early-diagnostic condition?
No. PHP says FPM needs a diagnostic-producing FastCGI parameter from the front end. A .user.ini file can supply the zlib shutdown settings, but not that later early diagnostic.
Has remote code execution been demonstrated for the documented cases?
PHP says these two restoration cases demonstrated heap use after free and worker crashes. It says code execution may be possible, but has not demonstrated RCE through those specific entry points.
Sources
- PHP Security Advisory GHSA-2fjv-p558-g82mPHP Group
- CVE-2026-129182 RecordPHP CNA via CVE Program
- PHP 8 ChangeLogPHP Group