CVE-2026-129182
CVE-2026-129182 · Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
CVSS 9.2 · Critical · EPSS 0.7% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- phpUpdate to 8.5.13
- php8.5 Ubuntu 26.10Update to 8.5.9-0ubuntu2.2
- php8.5 Ubuntu 26.04 LTSUpdate to 8.5.4-0ubuntu1.6
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="php8.5"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2026:101658 · Red Hat hummingbird 1 ·
- USN-9185-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 26.04 LTS, Ubuntu 26.10, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
- openSUSE-SU-2026:12618-1 · openSUSE Tumbleweed ·
Affected products and versions
php
- Versions
- ≥ 8.5.0, < 8.5.13: Affected (semver)
Update to 8.5.13
php8.5 Ubuntu 26.10
- Versions
- 8.5.4-0ubuntu1
- 8.5.4-0ubuntu3
- 8.5.9-0ubuntu1
- 8.5.9-0ubuntu2
- 8.5.9-0ubuntu2.1
- Affected ranges
- ECOSYSTEM: < 8.5.9-0ubuntu2.2
Update to 8.5.9-0ubuntu2.2
php8.5 Ubuntu 26.04 LTS
- Versions
- 8.5.2-0ubuntu1
- 8.5.4-0ubuntu1
- 8.5.4-0ubuntu1.1
- 8.5.4-0ubuntu1.2
- 8.5.4-0ubuntu1.3
- 8.5.4-0ubuntu1.4
All versions (7)
- 8.5.4-0ubuntu1.5
- Affected ranges
- ECOSYSTEM: < 8.5.4-0ubuntu1.6
Update to 8.5.4-0ubuntu1.6