SecurityContext

CVE-2026-129182: PHP - Use-After-Free

  • Cve: CVE-2026-129182
  • Name: PHP - Use-After-Free
  • 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.
  • Impact: Attackers can cause memory corruption and worker crashes, potentially leading to remote code execution.
  • Remediation: Upgrade to PHP 8.5.13 or later.
  • Vulnerability type: use_after_free
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirements: Attacker needs per-path max_memory_limit or zlib.output_compression with output_handler, and Apache per-directory config or PHP_VALUE/PHP_ADMIN_VALUE for PHP-FPM.
  • Labels source: securitycontext
  • Severity: critical
  • Cvss score: 9.2
  • Cvss vector: 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/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:X
  • Epss score: 0.08489
  • Epss percentile: 0.95164
  • Assignee: [email protected]
  • Published at: 2026-11-19T15:17:27Z
  • Age in days: 5
  • Modified at: 2026-11-20T15:17:42Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-129182
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-416Use After Free

References

UrlSourceTags
https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82mnvd

Products

ProductAffectedPlatform boundSourcesUrl
php:php>= 8.5.0, < 8.5.13nocna_cpes/v1/products/php/php

Projects

RepositoryLink kindsIndexedUrl
php/php-srcsecurity_advisoryyes/v1/repositories/php/php-src

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 6200906
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports

Watchlists

SourceStatusUrlListed onTitle
zero_wireprioritize_patchinghttps://radar.cloudflare.com/zero-wire/php-november-2026-security-release-phpaftershell2026-11-19phpAfterShell and six other PHP critical flaws