Advisories / PHP / CVE-2026-109618
PHP Memory Corruption Vulnerability (CVE-2026-109618)
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).
CVE-2026-109618 GHSA-w8hw-w9fx-j79w Published 21 Oct 2026
Fixed in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12.
- On PHP 8.2, upgrade to 8.2.35 or a later 8.2.x release.
- On PHP 8.3, upgrade to 8.3.36 or a later 8.3.x release.
- On PHP 8.4, upgrade to 8.4.27 or a later 8.4.x release.
- On PHP 8.5, upgrade to 8.5.12 or a later 8.5.x release.
Upgrade within the release line you’re on: each fix is a patch release on its own line. A line with no fix here may be past security support; check its dates.
Which versions are affected
| Line | Affected | Fixed in |
|---|---|---|
| PHP 8.2 | ≥ 7.3.0, < 8.2.35 | 8.2.35 |
| PHP 8.3 | ≥ 8.3.0, < 8.3.36 | 8.3.36 |
| PHP 8.4 | ≥ 8.4.0, < 8.4.27 | 8.4.27 |
| PHP 8.5 | ≥ 8.5.0, < 8.5.12 | 8.5.12 |
Check a site’s version with php -v. The web server can run a different PHP from the command line: phpversion() in a page shows the one serving the site.
Fixed in Ubuntu and Debian
A server that gets PHP from its distro gets the fix from the distro’s own packages. Install the update for the release it’s on:
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu 18.04 (bionic) | php7.2 | 7.2.24-0ubuntu0.18.04.17+esm14 |
| Ubuntu 20.04 (focal) | php7.4 | 7.4.3-4ubuntu2.29+esm5 |
| Ubuntu trusty | php5 | 5.5.9+dfsg-1ubuntu4.29+esm18 |
| Ubuntu 16.04 (xenial) | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm22 |
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu 22.04 (jammy) | php8.1 | 8.1.2-1ubuntu2.28 |
| Ubuntu 24.04 (noble) | php8.3 | 8.3.6-0ubuntu0.24.04.13 |
| Ubuntu 26.04 (resolute) | php8.5 | 8.5.4-0ubuntu1.5 |
| Ubuntu 26.10 (stonking) | php8.5 | 8.5.9-0ubuntu2.1 |
| Release | Package | Fixed in |
|---|---|---|
| Debian 13 (trixie) | php8.4 | 8.4.27-1~deb13u1 |
Timeline
- CVE published
- PHP security release: 8.2.35, 8.3.36, 8.4.27 and 8.5.12
- Added to CISA’s exploited list
Questions
Which PHP versions are safe from CVE-2026-109618?
8.2.35 and later on PHP 8.2, 8.3.36 and later on PHP 8.3, 8.4.27 and later on PHP 8.4 and 8.5.12 and later on PHP 8.5. Versions affected: ≥ 7.3.0, < 8.2.35, ≥ 8.3.0, < 8.3.36, ≥ 8.4.0, < 8.4.27, ≥ 8.5.0, < 8.5.12. Upgrade within the release line you’re on.
Is CVE-2026-109618 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities list on 26 October 2026, which means it has been used in real attacks. Upgrade as soon as you can.