PHP: Remote Code Execution via Out-of-Memory Memory Corruption
CISA confirms exploitation of this vulnerability in real attacks. Prioritise checking whether your application is affected. CISA KEV · CC0 1.0
PHP uses longjmp() during out-of-memory (OOM) errors to terminate the current context and abort request handling. Certain contexts do not appropriately handle this flow, leaving request memory in an uninitialized state prior to an allocation. During subsequent request cleanup, the engine may read from or branch on this uninitialized memory. Multiple OOM trigger strategies can reliably reproduce this state, potentially leading to remote code execution (RCE).
What to do
Update PHP to version 8.2.35, 8.3.36, 8.4.27, 8.5.12, or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| PHP (interpreter) | PHP | >= 8.2.0, < 8.2.35, >= 8.3.0, < 8.3.36, >= 8.4.0, < 8.4.27, >= 8.5.0, < 8.5.12 < 8.2.35; < 8.3.36; < 8.4.27; < 8.5.12 |
8.2.35, 8.3.36, 8.4.27, 8.5.12 |
References
- CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-416, CWE-755, CWE-824, CWE-1325, CWE-1419- Platform
- PHP
- Package
PHP- Disclosed
- 21.10.2026
- Updated
- 04.11.2026 10:00
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
PHP Security Advisories - GHSA-w8hw-w9fx-j79w - CVE Terms of Use
Copyright 1999-2026 The MITRE Corporation
Copyright 1999-2026 The MITRE Corporation
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
https://www.cve.org/Legal/TermsOfUseVulnerability history: PHP
All published vulnerabilities of this package (PHP (interpreter)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 78
- First → latest
- 02.2023 11.2026
- Without a fix
- 1
- Exploited in attacks
- 3
Severity breakdown
- Critical 11
- High 16
- Medium 42
- Low 9
Disclosures per year
- 2023: 5
- 2024: 17
- 2025: 12
- 2026: 44
-
PHP: Remote Code Execution via Out-of-Memory Memory Corruption this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.