CVE-2026-129182

critical EU-CRITICAL
EUVD alias: EUVD-2026-130122
Assigned by CNA: php
Published 2026-11-19 · Modified 2026-11-24
CVSS v3
—
CVSS v4 NEW
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
VIR risk
9.2

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.

Predictions

Exploit likelihood
20%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-129182 NameCVE-2026-129182 DescriptionUse-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…

CVE-2026-129182

NameCVE-2026-129182
DescriptionUse-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php8.2 (PTS)bookworm8.2.32-1~deb12u1fixed
bookworm (security)8.2.36-1~deb12u1fixed
php8.4 (PTS)trixie8.4.24-1~deb13u1fixed
trixie (security)8.4.28-1~deb13u1fixed
forky8.4.27-1fixed
sid8.4.28-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php8.2source(unstable)(not affected)
php8.4source(unstable)(not affected)

Notes

- php8.4 <not-affected> (Only affects PHP 8.5 version)
- php8.2 <not-affected> (Only affects PHP 8.5 version)
https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
- php8.4 <not-affected> (Only affects PHP 8.5 version)- php8.2 <not-affected> (Only affects PHP 8.5 version)https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m

OS impact

debian Debian Fixed 4 releases
VersionPackageStatusFixed in
trixie php8.4 Not affected —
sid php8.4 Not affected —
forky php8.4 Not affected —
bookworm php8.2 Not affected —
gentoo Gentoo Fixed 1 release
VersionPackageStatusFixed in
— — Fixed 8.2.36
ubuntu Ubuntu Fixed 8 releases
VersionPackageStatusFixed in
xenial php7.0-xml php7.0-xmlrpc php7.0-xsl +36 more Fixed 7.0.33-0ubuntu0.16.04.16+esm23
trusty php5-gd php5-gmp php5-intl +26 more Fixed 5.5.9+dfsg-1ubuntu4.29+esm19
stonking php8.5-odbc php8.5-sqlite3 php8.5-sybase +30 more Fixed 8.5.9-0ubuntu2.2
resolute php8.5-odbc php8.5-phpdbg php8.5-readline +30 more Fixed 8.5.4-0ubuntu1.6
noble libphp8.3-embed php8.3 php8.3-bcmath +32 more Fixed 8.3.6-0ubuntu0.24.04.14
jammy php8.1-zip libapache2-mod-php7.4 libapache2-mod-php8.0 +34 more Fixed 8.1.2-1ubuntu2.29
focal libapache2-mod-php7.4 libphp7.4-embed php7.4 +34 more Fixed 7.4.3-4ubuntu2.29+esm6
bionic php7.2-snmp php7.2-soap php7.2-sqlite3 +35 more Fixed 7.2.24-0ubuntu0.18.04.17+esm15
suse SUSE Tracked 1 release
VersionPackageStatusFixed in
— — Unknown —

Application impact

VendorProductVersionsFixed
php phpphp{"startIncluding":"8.5.0","endExcluding":"8.5.13"}8.5.13

References

CWEs

CWE-416 CWE-459

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.