Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown (CVE-2026-129182)
Published Last modified Sources: SingCERT, BSI, CVE.org, EUVD, HKCERT
What is affected, what to do
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.
Update PHP to version 8.5.13.
- Affected
- PHP
lt 8.5.0..8.5.13
- PHP
- Fixed in
- PHP
8.5.13
- PHP
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
9.2
XIEM Effective CVSS
Highest available CVSS rating from NVD and vendor data.
Source: Vendor (CNA), CVSS v4
9.2
CVSS v4
Severity Critical on the scale from 0 to 10.
Source: SingCERT, BSI, CVE.org, EUVD, HKCERT
—
EPSS score
No value is available for this vulnerability.
Show all metrics
- Severity
- Critical
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 76.00 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- no public PoC known
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 9.2 Methodology
CVSS v4
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 9.2
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- —
- Published
- CISA assessment (SSVC)
- Exploitation: none known · automatable · Technical impact: total
- Source: CISA Vulnrichment, as of 20 November 2026
CWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-416, CWE-459
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
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.
Source: CSA/SingCERT, BSI WID Portal, BSI CSAF, cvelistv5, ENISA EUVD, NVD (NIST), CVE.org (MITRE), HKCERT (CC BY 3.0 HK) · HKCERT rating: high
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| PHP Group | PHP |
|
|
| Open Source | PHP |
|
|
Fixed in hardened container images
Vendors of hardened images ship their own builds with a fix, often ahead of the distribution. This only concerns you if you use these images.
Show all 766 entries
| Fixed in | |||
|---|---|---|---|
| Chainguard | Chainguard | php-8.5 |
|
| Chainguard | Chainguard | php-8.5 |
|
| Chainguard | Chainguard | php-8.5-apache |
|
| Chainguard | Chainguard | php-8.5-apache |
|
| Chainguard | Chainguard | php-8.5-bcmath |
|
| Chainguard | Chainguard | php-8.5-bcmath |
|
| Chainguard | Chainguard | php-8.5-bcmath-config |
|
| Chainguard | Chainguard | php-8.5-bcmath-config |
|
| Chainguard | Chainguard | php-8.5-bz2 |
|
| Chainguard | Chainguard | php-8.5-bz2 |
|
| Chainguard | Chainguard | php-8.5-bz2-config |
|
| Chainguard | Chainguard | php-8.5-bz2-config |
|
| Chainguard | Chainguard | php-8.5-calendar |
|
| Chainguard | Chainguard | php-8.5-calendar |
|
| Chainguard | Chainguard | php-8.5-calendar-config |
|
| Chainguard | Chainguard | php-8.5-calendar-config |
|
| Chainguard | Chainguard | php-8.5-cgi |
|
| Chainguard | Chainguard | php-8.5-cgi |
|
| Chainguard | Chainguard | php-8.5-config |
|
| Chainguard | Chainguard | php-8.5-config |
|
| Chainguard | Chainguard | php-8.5-ctype |
|
| Chainguard | Chainguard | php-8.5-ctype |
|
| Chainguard | Chainguard | php-8.5-ctype-config |
|
| Chainguard | Chainguard | php-8.5-ctype-config |
|
| Chainguard | Chainguard | php-8.5-curl |
|
| Chainguard | Chainguard | php-8.5-curl |
|
| Chainguard | Chainguard | php-8.5-curl-config |
|
| Chainguard | Chainguard | php-8.5-curl-config |
|
| Chainguard | Chainguard | php-8.5-dbg |
|
| Chainguard | Chainguard | php-8.5-dbg |
|
| Chainguard | Chainguard | php-8.5-dev |
|
| Chainguard | Chainguard | php-8.5-dev |
|
| Chainguard | Chainguard | php-8.5-doc |
|
| Chainguard | Chainguard | php-8.5-doc |
|
| Chainguard | Chainguard | php-8.5-dom |
|
| Chainguard | Chainguard | php-8.5-dom |
|
| Chainguard | Chainguard | php-8.5-dom-config |
|
| Chainguard | Chainguard | php-8.5-dom-config |
|
| Chainguard | Chainguard | php-8.5-exif |
|
| Chainguard | Chainguard | php-8.5-exif |
|
| Chainguard | Chainguard | php-8.5-exif-config |
|
| Chainguard | Chainguard | php-8.5-exif-config |
|
| Chainguard | Chainguard | php-8.5-fileinfo |
|
| Chainguard | Chainguard | php-8.5-fileinfo |
|
| Chainguard | Chainguard | php-8.5-fileinfo-config |
|
| Chainguard | Chainguard | php-8.5-fileinfo-config |
|
| Chainguard | Chainguard | php-8.5-fpm |
|
| Chainguard | Chainguard | php-8.5-fpm |
|
| Chainguard | Chainguard | php-8.5-fpm-config |
|
| Chainguard | Chainguard | php-8.5-fpm-config |
|
| Chainguard | Chainguard | php-8.5-frankenphp |
|
| Chainguard | Chainguard | php-8.5-frankenphp |
|
| Chainguard | Chainguard | php-8.5-frankenphp-cli |
|
| Chainguard | Chainguard | php-8.5-frankenphp-cli |
|
| Chainguard | Chainguard | php-8.5-frankenphp-dev |
|
| Chainguard | Chainguard | php-8.5-frankenphp-dev |
|
| Chainguard | Chainguard | php-8.5-frankenphp-doc |
|
| Chainguard | Chainguard | php-8.5-frankenphp-doc |
|
| Chainguard | Chainguard | php-8.5-frankenphp-pear |
|
| Chainguard | Chainguard | php-8.5-frankenphp-pear |
|
| Chainguard | Chainguard | php-8.5-frankenphp-src |
|
| Chainguard | Chainguard | php-8.5-frankenphp-src |
|
| Chainguard | Chainguard | php-8.5-ftp |
|
| Chainguard | Chainguard | php-8.5-ftp |
|
| Chainguard | Chainguard | php-8.5-ftp-config |
|
| Chainguard | Chainguard | php-8.5-ftp-config |
|
| Chainguard | Chainguard | php-8.5-gd |
|
| Chainguard | Chainguard | php-8.5-gd |
|
| Chainguard | Chainguard | php-8.5-gd-config |
|
| Chainguard | Chainguard | php-8.5-gd-config |
|
| Chainguard | Chainguard | php-8.5-gettext |
|
| Chainguard | Chainguard | php-8.5-gettext |
|
| Chainguard | Chainguard | php-8.5-gettext-config |
|
| Chainguard | Chainguard | php-8.5-gettext-config |
|
| Chainguard | Chainguard | php-8.5-gmp |
|
| Chainguard | Chainguard | php-8.5-gmp |
|
| Chainguard | Chainguard | php-8.5-gmp-config |
|
| Chainguard | Chainguard | php-8.5-gmp-config |
|
| Chainguard | Chainguard | php-8.5-iconv |
|
| Chainguard | Chainguard | php-8.5-iconv |
|
| Chainguard | Chainguard | php-8.5-iconv-config |
|
| Chainguard | Chainguard | php-8.5-iconv-config |
|
| Chainguard | Chainguard | php-8.5-intl |
|
| Chainguard | Chainguard | php-8.5-intl |
|
| Chainguard | Chainguard | php-8.5-intl-config |
|
| Chainguard | Chainguard | php-8.5-intl-config |
|
| Chainguard | Chainguard | php-8.5-ldap |
|
| Chainguard | Chainguard | php-8.5-ldap |
|
| Chainguard | Chainguard | php-8.5-ldap-config |
|
| Chainguard | Chainguard | php-8.5-ldap-config |
|
| Chainguard | Chainguard | php-8.5-mbstring |
|
| Chainguard | Chainguard | php-8.5-mbstring |
|
| Chainguard | Chainguard | php-8.5-mbstring-config |
|
| Chainguard | Chainguard | php-8.5-mbstring-config |
|
| Chainguard | Chainguard | php-8.5-mysqli |
|
| Chainguard | Chainguard | php-8.5-mysqli |
|
| Chainguard | Chainguard | php-8.5-mysqli-config |
|
| Chainguard | Chainguard | php-8.5-mysqli-config |
|
| Chainguard | Chainguard | php-8.5-mysqlnd |
|
| Chainguard | Chainguard | php-8.5-mysqlnd |
|
| Chainguard | Chainguard | php-8.5-mysqlnd-config |
|
| Chainguard | Chainguard | php-8.5-mysqlnd-config |
|
| Chainguard | Chainguard | php-8.5-odbc |
|
| Chainguard | Chainguard | php-8.5-odbc |
|
| Chainguard | Chainguard | php-8.5-odbc-config |
|
| Chainguard | Chainguard | php-8.5-odbc-config |
|
| Chainguard | Chainguard | php-8.5-openssl |
|
| Chainguard | Chainguard | php-8.5-openssl |
|
| Chainguard | Chainguard | php-8.5-openssl-config |
|
| Chainguard | Chainguard | php-8.5-openssl-config |
|
| Chainguard | Chainguard | php-8.5-pcntl |
|
| Chainguard | Chainguard | php-8.5-pcntl |
|
| Chainguard | Chainguard | php-8.5-pcntl-config |
|
| Chainguard | Chainguard | php-8.5-pcntl-config |
|
| Chainguard | Chainguard | php-8.5-pdo |
|
| Chainguard | Chainguard | php-8.5-pdo |
|
| Chainguard | Chainguard | php-8.5-pdo-config |
|
| Chainguard | Chainguard | php-8.5-pdo-config |
|
| Chainguard | Chainguard | php-8.5-pdo_dblib |
|
| Chainguard | Chainguard | php-8.5-pdo_dblib |
|
| Chainguard | Chainguard | php-8.5-pdo_dblib-config |
|
| Chainguard | Chainguard | php-8.5-pdo_dblib-config |
|
| Chainguard | Chainguard | php-8.5-pdo_mysql |
|
| Chainguard | Chainguard | php-8.5-pdo_mysql |
|
| Chainguard | Chainguard | php-8.5-pdo_mysql-config |
|
| Chainguard | Chainguard | php-8.5-pdo_mysql-config |
|
| Chainguard | Chainguard | php-8.5-pdo_odbc |
|
| Chainguard | Chainguard | php-8.5-pdo_odbc |
|
| Chainguard | Chainguard | php-8.5-pdo_odbc-config |
|
| Chainguard | Chainguard | php-8.5-pdo_odbc-config |
|
| Chainguard | Chainguard | php-8.5-pdo_pgsql |
|
| Chainguard | Chainguard | php-8.5-pdo_pgsql |
|
| Chainguard | Chainguard | php-8.5-pdo_pgsql-config |
|
| Chainguard | Chainguard | php-8.5-pdo_pgsql-config |
|
| Chainguard | Chainguard | php-8.5-pdo_sqlite |
|
| Chainguard | Chainguard | php-8.5-pdo_sqlite |
|
| Chainguard | Chainguard | php-8.5-pdo_sqlite-config |
|
| Chainguard | Chainguard | php-8.5-pdo_sqlite-config |
|
| Chainguard | Chainguard | php-8.5-pear |
|
| Chainguard | Chainguard | php-8.5-pear |
|
| Chainguard | Chainguard | php-8.5-pgsql |
|
| Chainguard | Chainguard | php-8.5-pgsql |
|
| Chainguard | Chainguard | php-8.5-pgsql-config |
|
| Chainguard | Chainguard | php-8.5-pgsql-config |
|
| Chainguard | Chainguard | php-8.5-phar |
|
| Chainguard | Chainguard | php-8.5-phar |
|
| Chainguard | Chainguard | php-8.5-phar-config |
|
| Chainguard | Chainguard | php-8.5-phar-config |
|
| Chainguard | Chainguard | php-8.5-posix |
|
| Chainguard | Chainguard | php-8.5-posix |
|
| Chainguard | Chainguard | php-8.5-posix-config |
|
| Chainguard | Chainguard | php-8.5-posix-config |
|
| Chainguard | Chainguard | php-8.5-simplexml |
|
| Chainguard | Chainguard | php-8.5-simplexml |
|
| Chainguard | Chainguard | php-8.5-simplexml-config |
|
| Chainguard | Chainguard | php-8.5-simplexml-config |
|
| Chainguard | Chainguard | php-8.5-soap |
|
| Chainguard | Chainguard | php-8.5-soap |
|
| Chainguard | Chainguard | php-8.5-soap-config |
|
| Chainguard | Chainguard | php-8.5-soap-config |
|
| Chainguard | Chainguard | php-8.5-sockets |
|
| Chainguard | Chainguard | php-8.5-sockets |
|
| Chainguard | Chainguard | php-8.5-sockets-config |
|
| Chainguard | Chainguard | php-8.5-sockets-config |
|
| Chainguard | Chainguard | php-8.5-sodium |
|
| Chainguard | Chainguard | php-8.5-sodium |
|
| Chainguard | Chainguard | php-8.5-sodium-config |
|
| Chainguard | Chainguard | php-8.5-sodium-config |
|
| Chainguard | Chainguard | php-8.5-sysvsem |
|
| Chainguard | Chainguard | php-8.5-sysvsem |
|
| Chainguard | Chainguard | php-8.5-sysvsem-config |
|
| Chainguard | Chainguard | php-8.5-sysvsem-config |
|
| Chainguard | Chainguard | php-8.5-sysvshm |
|
| Chainguard | Chainguard | php-8.5-sysvshm |
|
| Chainguard | Chainguard | php-8.5-sysvshm-config |
|
| Chainguard | Chainguard | php-8.5-sysvshm-config |
|
| Chainguard | Chainguard | php-8.5-tidy |
|
| Chainguard | Chainguard | php-8.5-tidy |
|
| Chainguard | Chainguard | php-8.5-tidy-config |
|
| Chainguard | Chainguard | php-8.5-tidy-config |
|
| Chainguard | Chainguard | php-8.5-xml |
|
| Chainguard | Chainguard | php-8.5-xml |
|
| Chainguard | Chainguard | php-8.5-xml-config |
|
| Chainguard | Chainguard | php-8.5-xml-config |
|
| Chainguard | Chainguard | php-8.5-xmlreader |
|
| Chainguard | Chainguard | php-8.5-xmlreader |
|
| Chainguard | Chainguard | php-8.5-xmlreader-config |
|
| Chainguard | Chainguard | php-8.5-xmlreader-config |
|
| Chainguard | Chainguard | php-8.5-xmlwriter |
|
| Chainguard | Chainguard | php-8.5-xmlwriter |
|
| Chainguard | Chainguard | php-8.5-xmlwriter-config |
|
| Chainguard | Chainguard | php-8.5-xmlwriter-config |
|
| Chainguard | Chainguard | php-8.5-xsl |
|
| Chainguard | Chainguard | php-8.5-xsl |
|
| Chainguard | Chainguard | php-8.5-xsl-config |
|
| Chainguard | Chainguard | php-8.5-xsl-config |
|
| Chainguard | Chainguard | php-8.5-zip |
|
| Chainguard | Chainguard | php-8.5-zip |
|
| Chainguard | Chainguard | php-8.5-zip-config |
|
| Chainguard | Chainguard | php-8.5-zip-config |
|
Showing 200 of 766 entries. Source: OSV.dev, licensed CC BY 4.0.
Vendors and products
Weakness classes (CWE)
CWE-416Use After Free
Variant
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Entry at MITRE CWE-416CWE-459Incomplete Cleanup
Base
The product does not properly "clean up" and remove temporary or supporting resources after they have been used.
Entry at MITRE CWE-459
References & sources
- github.comphp/php-src/security/advisories/GHSA-2fjv-p558-g82mVendor advisory, euvd
- cert.atCERT.at: Kritische Sicherheitslücken in PHP - Updates verfügbarcert-at
Changes to this CVE
Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).
Record modifiedCISA ADP
CISA assessment (SSVC): exploitation: none known, automatable: yes
Show 2 original changes
Individual changes of this event as published by NVD Type Action Before After SSVC assessment removed {"id":"CVE-2026-129182","role":"CISA Coordinator","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-11-19T00:00:00+00:00"}—SSVC assessment added —{"id":"CVE-2026-129182","role":"CISA Coordinator","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-11-20T04:56:44.173410Z"}Source identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Record modifiedCISA ADP
CISA assessment (SSVC): exploitation: none known, automatable: yes
Show 2 original changes
Individual changes of this event as published by NVD Type Action Before After SSVC assessment removed {"id":"CVE-2026-129182","role":"CISA Coordinator","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-11-19T16:04:31.707809Z"}—SSVC assessment added —{"id":"CVE-2026-129182","role":"CISA Coordinator","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-11-19T00:00:00+00:00"}Source identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Record modifiedCISA ADP
CISA assessment (SSVC): exploitation: none known, automatable: no
Show the original change
Individual changes of this event as published by NVD Type Action Before After SSVC assessment added —{"id":"CVE-2026-129182","role":"CISA Coordinator","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-11-19T16:04:31.707809Z"}Source identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0
ReceivedPHP
CVSS V4.0: AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness type: CWE-416, CWE-459
Description added or changed
Show 6 original changes
Individual changes of this event as published by NVD Type Action Before After Description added —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.CVSS added —AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XWeakness type (CWE) added —CWE-416Weakness type (CWE) added —CWE-459Affected versions (publisher) added —New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/129xxx/CVE-2026-129182.json">CVE-2026-129182</a>Reference added —https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82mSource identifier: security@php.net
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2026-129182"><img src="https://intel.neosec.eu/badge/cve/CVE-2026-129182.svg?lang=en" alt="CVE-2026-129182 – NEOSEC Intel" height="20"></a>