What is wrong
PHP improperly handles out-of-memory errors when using longjmp(), leaving request memory in an uninitialized state. Subsequent request cleanup procedures can read or branch on this memory, allowing attackers to consistently execute arbitrary code remotely.
Who is affected
This affects PHP versions >= 7.3.0 to < 8.2.35, >= 8.3.0 to < 8.3.36, >= 8.4.0 to < 8.4.27, and >= 8.5.0 to < 8.5.12.
What to do
Upgrade PHP to fixed version 8.2.35, 8.3.36, 8.4.27, or 8.5.12 depending on the affected release line. Alternatively, apply vendor-provided mitigations.
Original description
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).
Known exploited (CISA KEV)
- Added to KEV
- 2026-10-26
- Remediation due (US federal)
- 2026-10-29
- Ransomware use
- Unknown
- Required action
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Affected software
- PHP ≥ 8.4.0 < 8.4.27≥ 8.5.0 < 8.5.12≥ 7.3.0 < 8.2.35≥ 8.3.0 < 8.3.36 Fixed in: 8.4.27, 8.5.12, 8.2.35, 8.3.36 exact match
Details
- Published
- 2026-10-21
- Last modified
- 2026-11-17
- 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- CWE
- CWE-416, CWE-755, CWE-824, CWE-1325, CWE-1419
- EPSS (30-day exploit probability)
- 100.00% (percentile 100)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.