Critical
PHP use-after-free error during fatal shutdown
PHP
What happened
A use‑after‑free occurs when a fatal error restores modified INI settings during shutdown, repopulating a stale fatal error backtrace that can lead to memory corruption or remote code execution.
Are you affected?
PHP versions 8.5.0 to 8.5.',[a to 8.5.12]
What to do now
- Upgrade to PHP 8.5.13 or later.
- Ensure that settings such as max_memory_limit or zlib.output_compression are properly configured to avoid the issue, following the guidance in the official advisory.
Sources
- cve.now/CVE-2026-129182
- CVE-2026-129182
- https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m
Data sources: cve.now, CISA KEV, GitHub Advisory Database, OSV.
This product uses data from the NVD API but is not endorsed or certified by the NVD.
Not sure if your app is affected?
Get a free Finish Line Scan and a senior engineer will tell you what to fix.
Get a free scan