Breaking PHP Group PHP (mod_php, FPM, FrankenPHP, LSAPI)

CVE-2026-109618: PHP2Shell bug gives unauthenticated code execution in PHP

An out-of-memory handling bug in PHP lets unauthenticated attackers run code as the web worker (CVSS 9.2). Scanning and exploitation attempts began on release day, and a working exploit exists for PHP 8.4 on x86-64.

Published Updated

ExploitedYes, in CISA KEVAdded 26 Oct 2026
Ransomware useNot reportedPer CISA
SeverityCRITICALCVSS 4.0 9.2
EPSS100%Chance of exploitation in 30 days
Public exploitYes
FixAvailable

Breaking News: PHP Group isn't one of the vendors we track every day, but this vulnerability is serious enough to cover.

Also affects products we track

Affected and fixed versions

Product / branchFixed in
PHP 8.5.0 to 8.5.118.5.12 or later
PHP 8.4.0 to 8.4.268.4.27 or later
PHP 8.3.0 to 8.3.358.3.36 or later
PHP 8.2.0 to 8.2.348.2.35 or later
PHP 8.1 and older (end of life)No official release. Upgrade to a supported branch

Always confirm against the vendor advisory, which lists every fixed hotfix.

Why this matters

PHP runs on roughly 2.6 million internet-facing hosts, according to VulnCheck, and sits behind WordPress, Laravel, Joomla, Drupal and Magento. PatchTonight doesn’t track PHP as a vendor, but nearly every team runs it somewhere, often inside an application nobody thinks of as “PHP”. The bug needs no login, scanning started on release day, and a working exploit exists. VulnCheck counts over 1.1 million hosts on end-of-life branches that get no official fix.

CVE-2026-109618 is one of a pair nicknamed PHP2Shell. The other, CVE-2026-109619 (stale global state), is covered in the VulnCheck write-up. Patch both with the same release.

What it is

PHP exits a request with longjmp() when it runs out of memory. In some code paths, request memory is reachable before it has been initialised, so the early exit leaves invalid data behind. Request cleanup then reads or branches on it. The failed allocation doesn’t need to be related to the corrupted memory.

An attacker sends crafted requests, such as multipart POSTs, that push PHP to the memory limit while staying within apparent size limits. The advisory reports unauthenticated remote code execution as the web worker user, validated on mod_php with default limits. Reliability depends on the build, extensions, frontend and allocator.

CVSS 4.0 is 9.2. Attack complexity is rated high, because exploitation needs the right memory layout.

Am I affected?

Yes if you run PHP before 8.2.35, 8.3.36, 8.4.27 or 8.5.12 and PHP handles requests from the network. No special configuration is needed.

  • The advisory says mod_php is confirmed susceptible. FrankenPHP and LSAPI are likely susceptible. FPM is considered susceptible from source analysis, but no full FPM exploit has been shown.
  • PHP 8.1 and older are end of life. They get no official release.
  • Linux distributions often backport fixes without changing the version string. Check your distribution’s advisory before concluding a host is vulnerable or safe.
  • PHP bundled in applications, containers and vendor appliances needs the same check.

Check the version on a host:

php -v

The CLI version can differ from the one serving web requests, so check that one too.

What to do

  1. Upgrade to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or your distribution’s patched package. Restart web server or FPM workers afterwards.
  2. If you’re on 8.1 or older, move to a supported branch.
  3. If you can’t patch yet, apply the mitigations from the PHP advisory and VulnCheck. None is a complete fix:
    • Enforce memory_limit=-1 through an admin-only setting. Make sure no pool, directory or app setting reapplies a finite limit.
    • Lower post_max_size (VulnCheck suggests 8M without uploads, 32M with) and keep upload_max_filesize below it.
    • Enforce decoded request size, field count, multipart part count, header count and nesting depth at the web server or proxy.
    • Block multipart requests at the frontend if the application doesn’t use them.
    • Don’t use RLIMIT_AS or RLIMIT_DATA. They trigger the vulnerable path.
    • For CVE-2026-109619, VulnCheck advises session.upload_progress.enabled=0 in php.ini or the FPM pool config, then a restart of all workers.
  4. If a vulnerable host was internet-facing since 21 October, hunt for compromise (below). If you find a web shell or unexplained processes, rebuild the host and rotate secrets the web user could read, such as database passwords, API keys and .env files.

Detection

  • Search web logs for the user agents and IPs in the indicators section.
  • Look for multipart POSTs that set PHP_SESSION_UPLOAD_PROGRESS, followed by requests using php://filter to read a session file. VulnCheck saw this pattern on 21 October.
  • Check the PHP session directory for the sess_ file named in the indicators, and web roots for new or changed .php files.
  • VulnCheck’s observed web shell payload printed PWNED:: before running a command, so a response containing it means the payload ran.
  • Watch for unexpected child processes of the web server or PHP worker.
  • VulnCheck advises checking for follow-up requests from 221.14.159.134.

Indicators of compromise

These come from one honeypot network on 21 October 2026 and are mostly scanners. Absence of a match does not mean you are clean. VulnCheck's post also lists more user agents and file hashes.

The .txt list has one IP per line and a fixed address, so a firewall can pull it as an External Dynamic List: https://patchtonight.com/iocs/CVE-2026-109618.txt

IndicatorTypeReported by
85.11.167[.]243IPProbe and reconnaissanceVulnCheck
45.198.224[.]169IPProbe and follow-up POSTsVulnCheck
109.71.252[.]97IPProbeVulnCheck
221.14.159[.]134IPWeb shell attempt via PHP_SESSION_UPLOAD_PROGRESS; looked unsuccessful, check for follow-up requestsVulnCheck
91.90.123[.]25IPVerification checkVulnCheck
php2shell-scan/109618User agentVulnCheck
php2shell-verify/1.0User agentVulnCheck
Mozilla/5.0 (php2shell-poc)User agentVulnCheck
sess_xqsuvwz3n97wu8j3emz1axuo5yFile pathSession file name used in the web shell attemptVulnCheck
p2s.txtFile pathUpload filename in the attemptVulnCheck

VulnCheck PHP2Shell write-up.

Sources

Spotted a mistake on this page? Tell us, and we'll fix it.

Page changelog

  • Full analysis published.

Get alerts

A notification when we publish a new analysis or a covered vendor gets a new actively exploited CVE. No account, no email.

Tell us what you think

What do you rely on here, what's missing, which vendor should we add? Every message is read by the editor.

Write to us

contact-us@patchtonight.com