CVE-2026-109618: PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request.
Critical CVSS 9.8
- CVE id
- CVE-2026-109618
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| PHP Runtimes and servers |
>= 7.3.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 |
How to fix it
Upgrade PHP to the fixed release of the line you run: 8.2.35, 8.3.36, 8.4.27, 8.5.12.
php --version
- Install the patched PHP release of your minor line (the php image tag or your OS packages) and restart PHP-FPM.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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).
References
- CVE-2026-109618 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-109618
- Web: https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
- Web: https://github.com/rapid7/metasploit-framework/pull/22139
- Web: https://arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-enable-unauthenticated-remote-code-execution/
- Web: https://cert-portal.siemens.com/productcert/html/ssa-166980.html
- Web: https://cert-portal.siemens.com/productcert/html/ssa-566435.html
- Web: https://cert-portal.siemens.com/productcert/html/ssa-566512.html
- Web: https://php2shell.delftintellab.com
- Web: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-109618
- Web: https://www.wiz.io/blog/php2shell-php-rce
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.