CVE-2026-129182PHP Use-After-Free
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
Published Nov 19, 2026 · Updated Nov 20, 2026 · Also known as EUVD-2026-130122, GHSA-2fjv-p558-g82m
Key Facts
Patch in the next maintenance window- CVE-2026-129182 is a critical-severity vulnerability (CVSS 9.2 v4) affecting PHP, php8.2 (debian), php8.4 (debian) and 7 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 8.5% probability of exploitation in the next 30 days.
- Fixed versions are available, including engine 8.5.13, PHP 8.5.13, php-8.1 8.1.34.
- Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.
Scores
CVSS v4
9.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS (30-day exploit likelihood)
8.5%
Higher than 95.1% of all scored CVEs
Exploit maturity
None known
ATLAS score
38/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://github.com/php/php-src/security/advisories
- advisoryhttps://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m
- advisoryhttps://www.php.net/ChangeLog-8.php#8.2.36
- advisoryhttps://www.php.net/ChangeLog-8.php#8.3.37
- advisoryhttps://www.php.net/ChangeLog-8.php#8.4.28
- advisoryhttps://www.php.net/ChangeLog-8.php#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
14 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PHPPHP | >= 8.5.0 | 8.5.13 |
| php8.2debian | See advisory | 0 |
| php8.4debian | See advisory | 0 |
| php-8.1echo | See advisory | 8.1.34 |
| php-8.5echo | See advisory | 8.5.13+e1 |
Patched Releases
engine
8.5.13
PHP
8.5.13
php-8.1
8.1.34
php-8.5
8.5.13+e1
php-8.5-zts
8.5.13+e1
php-8.6
8.6.0+e1
php-8.6-zts
8.6.0+e1
php/php-src
8.5.13
pkg:software-id/php.net/php
8.5.13
Timeline
Publicly disclosed
Nov 19, 2026
Last updated
Nov 20, 2026
Weakness Type
- CWE-416 Use After Free
- CWE-459 Incomplete Cleanup
- CWE-825 Expired Pointer Dereference
References
- advisorygithub.com · advisories
- advisorygithub.com · GHSA-2fjv-p558-g82m
- advisoryphp.net · ChangeLog-8.php
- advisoryphp.net · ChangeLog-8.php
- advisoryphp.net · ChangeLog-8.php
FAQ
Common Questions.
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown.
Affected: PHP versions >= 8.5.0; php8.2 (debian); php8.4 (debian), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including engine 8.5.13, PHP 8.5.13, php-8.1 8.1.34.
Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.
Is CVE-2026-129182 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo