cve.bz

CVE-2026-129182 Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown

9.2 criticalEPSS 8.5%

Critical (9.2) in php group php. EPSS 8.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.2 critical
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
8.5% estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-11-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-416 Use After Free
CWE-459 Incomplete Cleanup
Published
Modified
Assigned by
php (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-129182 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-129182?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-129182?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-129182 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHP Group PHPfrom 8.5.0 before 8.5.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSphp8.1no fix listedUBUNTU-CVE-2026-129182
Ubuntu24.04:LTSphp8.3no fix listedUBUNTU-CVE-2026-129182
Ubuntu26.04:LTS, 26.10php8.5no fix listedUBUNTU-CVE-2026-129182
UbuntuPro:14.04:LTSphp5no fix listedUBUNTU-CVE-2026-129182
UbuntuPro:16.04:LTSphp7.0no fix listedUBUNTU-CVE-2026-129182
UbuntuPro:18.04:LTSphp7.2no fix listedUBUNTU-CVE-2026-129182
UbuntuPro:20.04:LTSphp7.4no fix listedUBUNTU-CVE-2026-129182
openSUSETumbleweedphp88.5.13-1.1openSUSE-SU-2026:12618-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · openSUSE.

History

  1. EPSS fell to 8.5% (below 10%)

Changes since this site first stored the record. The same for every record: /api/public/changes.

References

Check your stackJSON