Official releases fix only PHP 8.2 and newer. For 8.1, 8.0 and 7.4, the PHP team shared source patches that you build yourself. For 7.3 and older, there is nothing. Seal has already patched PHP 5.x and 7.x, and patches 8.0 and 8.1 on request. Same version, both CVEs fixed, free.
A real person on Slack. Join as a guest, tell us your PHP version, get the patch. Free.
On October 20, details of two PHP bugs leaked before the embargo ended. The PHP security team fixed both on October 21, 2026 in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Researchers call the pair PHP2Shell. The PHP advisory has the full details.
CVE-2026-109618 and CVE-2026-109619 are both rated CVSS v4.0 9.2. Both allow unauthenticated remote code execution through memory bugs in PHP itself. One fires when PHP runs out of memory partway through a request. The other uses state left over from an earlier request. You can’t fix either in your app.
Sansec expects mass attacks within 15 minutes of the release. Once the fix is public, it shows attackers where the bug is.
Official releases cover PHP 8.2, 8.3, 8.4 and 8.5. For 7.4, 8.0 and 8.1 the PHP team published source patches only, with no release. PHP 7.3 and older get nothing.
Root cause. PHP uses longjmp() to leave the current context when it runs out of memory. At some points, request memory is reachable before it is fully set up. If any allocation fails at that moment, even one that has nothing to do with that memory, PHP exits early and leaves the memory in an invalid state. Request shutdown then reads or branches on it, which can lead to remote code execution.
How an attacker reaches out-of-memory. Multipart parsing lets a request run out of memory while it stays inside its apparent limits:
Content-Length can pass the first post_max_size check and keep sending decoded body data.post_max_size can exhaust memory_limit.max_file_uploads but still create file metadata arrays. Nested field names multiply that work.Application code that allocates a lot of memory from attacker input can reach the same state.
Why mod_php is the worst case. mod_php always runs request shutdown, even when request startup failed. Body parsing during startup can hit the memory limit, and shutdown then processes the invalid state, before any application code runs. Full RCE was validated over HTTP against mod_php with default input and memory limits and a normal prefork setup with multiple workers.
Root cause. A PHP worker keeps global state (error, session, object and extension state) that can point into memory owned by one request. That state must be reset before the request memory is freed. If a fatal error, including out-of-memory, cuts an operation short, the reset never runs. The next request on the same worker can then use the freed memory before normal initialization replaces it.
What an attack needs. A producer request leaves stale state behind, and a consumer request on the same worker uses it. More workers and worker recycling lower the success rate per request but don’t remove the bug.
Confirmed paths:
fatal_error_backtraces on, the backtrace state is never reset at shutdown. This is the basis of the confirmed mod_php exploit.session_start() in your code. Validated against mod_php and against PHP-FPM with a normal dynamic pool, where it depends on a suitable application operation.Early INI warnings are also a consumer. A warning or deprecation raised while per-request INI settings are applied, before initialization, reads the stale error state. Examples include deprecated settings such as auto_detect_line_endings=1 and invalid values such as a bad memory_limit or date.timezone. With mod_php these come from .htaccess or php_value. With FPM they come from PHP_VALUE or PHP_ADMIN_VALUE sent by nginx or another frontend. Changing error_reporting, using @, or turning off display_errors or log_errors does not protect you.
| Setup | CVE-2026-109618 | CVE-2026-109619 |
|---|---|---|
| Apache mod_php | RCE confirmed | RCE confirmed |
| PHP-FPM | Susceptible by source analysis, no full exploit shown | RCE validated with a normal dynamic pool, needs a suitable application operation |
| FrankenPHP | Likely susceptible, like mod_php | No early consumer found in the default setup, but not immune |
| LiteSpeed (LSAPI) | Application-specific exploits likely, not validated | Conditional |
Exploit reliability depends on the PHP build, extensions, frontend behavior and memory allocator layout.
Both advisories say only an update fully fixes this. Set the values below in php.ini, the FPM pool or the server config, not with ini_set() or .user.ini, and restart every worker.
memory_limit = -1, enforced so no pool, directory or app can set a finite limit back. This removes the controllable limit the confirmed exploit uses. An underlying allocation failure can still reach the bug.post_max_size = 8M (32M if you need uploads), with upload_max_filesize below it.Content-Length. If you don’t use multipart forms, block them before they reach PHP.RLIMIT_AS or RLIMIT_DATA. They make mmap() fail and trigger the vulnerable path. A cgroup memory.max can serve as a boundary, ideally one that kills only the affected worker.session.upload_progress.enabled = 0. The advisory suggests keeping it off even after you patch, if you don’t use it.fatal_error_backtraces = 0.Maximum execution time exceeded. If performance allows, pm.max_requests = 1 gives each worker a single request.In an isolated audit, turn on log_errors=On, a working error_log and error_reporting=E_ALL in startup config. Then check Apache, PHP-FPM, proxy and service logs for:
Maximum execution time exceeded.A clean log does not prove you are safe. A failure can happen before PHP writes the message.
Out-of-memory handling. The patch removes longjmp() for out-of-memory errors. PHP now stops gracefully at the next safe point in the VM, and exits the process with _exit() if memory use passes a second, higher limit. Shutdown no longer sees half-built state, and memory_limit still works.
State reset. The patch resets the wider set of request-owned global state, so it can’t survive into the next request.
Source backports. The PHP 8.1 backport is a single commit, “Avoid state corruption via bailout,” that touches 23 files across the Zend memory allocator and VM, OPcache, sessions, main/SAPI.c and multipart parsing (main/rfc1867.c). The 8.0 and 7.4 branches carry the same commit message. These are source branches only. You build, package and test PHP yourself.
CVSS v4.0 vector for both: AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. Network attack, no privileges, no user interaction, high impact, with high attack complexity and attack requirements present.
The advisories list every PHP before 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as affected. The PHP team also patched 7.4, 8.0 and 8.1 in source, so treat those as affected. The advisories don’t cover 7.3 and older, so assume those are affected too. Your branch decides what fix exists for you.
The command line and the web server can use different PHP builds on the same host. Check the one that serves traffic.
php -v
php-fpm8.1 -v # Debian and Ubuntu name php-fpm per version
curl -sI https://your-site.example | grep -i x-powered-by
Compare the package names with the table below.
# Debian, Ubuntu (deb)
dpkg -l 'php*' | grep ^ii
# RHEL, CentOS, Rocky, Alma, Amazon Linux (rpm)
rpm -qa 'php*'
# Alpine (apk)
apk list --installed 'php*'
Images built FROM php:7.4-apache, php:8.0-fpm, php:8.1-cli or older carry PHP that gets no official release.
docker run --rm --entrypoint php your-image:tag -v
8.2 or newer: update to 8.2.35, 8.3.36, 8.4.27 or 8.5.12, or to your OS vendor’s fixed package. 8.1, 8.0 or 7.4: there is no official release. The PHP team shared source patches you can build yourself, and your OS vendor may ship a backport. 7.3 or older: there is nothing official. Either way, we patch it for free. PHP 5.x and 7.x are already patched.
If you set up a LAMP stack with apt install php, dnf install php
or apk add, this is the PHP you got. Package data checked October 21, 2026.
| Distro | Packages | PHP | Status | Distro support |
|---|---|---|---|---|
| Ubuntu 20.04 LTS | php7.4, php7.4-fpm, libapache2-mod-php7.4 | 7.4 | VULNERABLEUnless on Ubuntu ProSeal patch ready | Standard support ended May 2025. Ubuntu Pro (ESM) machines: fixed in 7.4.3-4ubuntu2.29+esm5 (USN-8948-2). |
| Ubuntu 22.04 LTS | php8.1, php8.1-fpm, libapache2-mod-php8.1 | 8.1 | Fixed by Ubuntu | Install the Ubuntu update. |
| Ubuntu 24.04 LTS | php8.3, php8.3-fpm | 8.3 | Fixed upstream | Install the Ubuntu update. |
| Debian 10 (buster) | php7.3, php7.3-fpm | 7.3 | VULNERABLESeal patch ready | Out of LTS. Paid Extended LTS only. |
| Debian 11 (bullseye) | php7.4, php7.4-fpm | 7.4 | VULNERABLESource patch onlySeal patch ready | LTS ended August 31, 2026. Paid Extended LTS only. |
| Debian 12 (bookworm) | php8.2, php8.2-fpm | 8.2 | Fixed upstream | Install the Debian update. |
| Debian 13 (trixie) | php8.4, php8.4-fpm | 8.4 | Fixed upstream | Install the Debian update. |
| RHEL 7, CentOS 7 | php, php-fpm (rpm) | 5.4 | VULNERABLESeal patch ready | CentOS 7 ended June 30, 2024. RHEL 7 only with paid ELS. More on CentOS 7 end of life. |
| RHEL 8, Rocky 8, Alma 8 | php module streams: 7.2 (default), 7.4, 8.0, 8.2 | 7.2 to 8.0 | VULNERABLE7.4, 8.0 streams: source patch only. 8.2 stream: fixed upstream7.x: Seal patch ready | Supported. Red Hat decides per stream, so check its CVE page. |
| RHEL 9, Rocky 9, Alma 9 | php 8.0 (default), module streams 8.1 and newer | 8.0, 8.1 | VULNERABLESource patch only. 8.2+ streams: fixed upstream | Supported. Red Hat decides per stream, so check its CVE page. |
| Amazon Linux 1 (Amazon Linux AMI) | php (5.3), php54 to php56, php70 to php73 (rpm) | 5.3 to 7.3 | VULNERABLESeal patch ready | End of life December 31, 2023. No updates. |
| Amazon Linux 2 | php 7.x and 8.x from amazon-linux-extras | 7.x, 8.0, 8.1 | VULNERABLE7.4 to 8.1: source patch only7.x: Seal patch ready | Support ended June 30, 2026. |
| Amazon Linux 2023 | php8.1, php8.2 and newer | 8.1 | VULNERABLEphp8.1: source patch only | Supported. Check the Amazon Linux security center. |
| Alpine 3.15 | php7, php8 (apk) | 7.4, 8.0 | VULNERABLESource patch only7.4: Seal patch ready | Release out of support. |
| Alpine 3.16, 3.17 | php81 (3.16 also php8) | 8.1 | VULNERABLESource patch only | Release out of support. |
| Alpine 3.18, 3.19 | php81, php82 (3.19 also php83) | 8.1, 8.2+ | VULNERABLEphp81: source patch only | Move to php82 or newer, or patch php81. |
| Alpine 3.20 and newer | php82, php83, php84 | 8.2+ | Fixed upstream | Install the Alpine update. |
Running PHP 5.x or 7.x? It’s already patched. A PHP expert is on chat to get you the build for your version, free.
Chat with a PHP expertPHP gives each branch two years of bug fixes and two more years of security fixes. After that, nothing, not even for a 9.2. Here is where each branch stands on October 21, 2026.
For 8.1 and older, the official answer is “upgrade to 8.2,” or build a source patch yourself for 7.4 to 8.1. An upgrade is a migration project, and these bugs won’t wait for it. We’ll patch the version you run instead, for free.
On 8.2 or newer, install the fixed release. On anything older, these are the real choices.
If you run PHP older than 8.2 and haven’t patched it, assume yes. There is no official release for you. The common packages are php7.4 and php8.1 on Ubuntu 20.04 and 22.04 (deb), php7.3 and php7.4 on Debian 10 and 11 (deb), php 5.4 on RHEL and CentOS 7, the 7.2 to 8.1 php streams on RHEL 8 and 9 (rpm), and php7, php8 and php81 on Alpine (apk). On 8.2 or newer, you are affected until you update to 8.2.35, 8.3.36, 8.4.27 or 8.5.12. See the full package list and the commands to check.
Maybe. The PHP team sent the patches to Linux distributions and LTS vendors in advance, so check yours for updated packages. Ubuntu 22.04 and RHEL 8 and 9 are still supported. Ubuntu 20.04, Debian 10 and 11, CentOS 7, Amazon Linux 1 and Amazon Linux 2 are out of standard support. The PHP team also warned that the volunteer-run Remi repository would not have same-day updates. If your vendor doesn’t ship a fix, Seal will.
Yes. For CVE-2026-109618 and CVE-2026-109619, we patch the PHP version you run at no charge. PHP 5.x and 7.x are already patched. Chat with a PHP expert, tell us your version, and we take it from there.
Install the fixed PHP release. Seal is for the PHP that can’t move that fast: the legacy app on 7.4, the vendor appliance on 8.0, the servers where an upgrade is a quarter of work.
PHP 5.x and 7.x are already patched. Tell a PHP expert the version you run, and we send back the same version with CVE-2026-109618 and CVE-2026-109619 fixed. Free.