php2shell / anatomy ZERO-DAY · AWARENESS
CVE-2026-109618CVE-2026-109619CVSS v4.0 9.2 · CRITICAL

One plain POST,
and PHP is theirs.

No upload form. No login. PHP’s own advisories confirm unauthenticated code execution over ordinary HTTP on Apache mod_php. On PHP-FPM it was shown through the CVE-2026-109619 session path, and CVE-2026-109618 is rated susceptible there from source analysis. That is php2shell. This page exists so you patch before it reaches you.

LineageHeartbleed 2014›Shellshock 2014›Log4Shell 2021›php2shell 2026
patch status · fixed 2026-10-21 · CISA KEV 2026-10-26live
…

PHP ships an out-of-cycle security release at 14:00 UTC, 2026-10-21 for 8.2 / 8.3 / 8.4 / 8.5. Have your update staged now. The gap between patch and weaponisation is expected to be tiny.

9.2
CVSS v4.0
unauth
no login required
PHP 5.4+
claimed impact
KEV
CISA: exploited in the wild
QUOTED POST

Even the Prime Minister told you to patch tonight.

An urgent request for tonight.

PHP’s security team has issued an advisory about two critical vulnerabilities in PHP, which is used by a great many websites.

Please check whether your public sites use PHP, and prepare to apply the fix released tonight at 23:00 JST as quickly as possible.

If applying it promptly is difficult, temporarily taking the site offline is one effective way to reduce risk.

Our national cyber office is posting related information on its X account too, so please refer to that as well.

Quoted from Prime Minister Sanae Takaichi (@takaichi_sanae) on X, posted shortly before 22:00 JST on 2026-10-21. English translation of the Japanese original.Original post on X

When the head of government announces your maintenance window, “I’ll get to it after lunch” stops being a plan. 23:00 JST = 14:00 UTC, the same clock ticking at the top of this page.

Plate 01Why it's different

“We’re not affected” doesn’t hold here.

An ordinary web shell is the story of one vulnerable app getting one file dropped in it. php2shell is different. The flaw is reported to live in PHP itself, with no special feature and no risky setting required. If your site runs PHP, you’re in scope.

01 · core flaw

Not a plugin. PHP itself.

It isn’t a bug in some WordPress plugin or one framework. It’s reported in the PHP interpreter, so it doesn’t care what your site is built with.

02 · default on

No special setup needed

The demonstrated path for CVE-2026-109619, session.upload_progress, has been on by default since PHP 5.4. Nobody has to misconfigure anything for it to apply.

03 · unauthenticated

No login, no upload field

Even a site with no upload feature can be reached by a POST to any PHP endpoint. “We blocked uploads” does not save you.

04 · whole ecosystem

Shown across major CMS and frameworks

Leaked footage reportedly showed it working on WordPress, Drupal, Joomla, Magento, Laravel, Symfony, MediaWiki, phpBB and WHMCS.

Plate 02How it works

In plain terms. No recipe.

You don’t need exploit details to grasp why this is bad. Here is the shape of it, at a level that informs defenders without handing anyone a weapon.

Mechanism below is high-level, based on PHP’s own advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp). They are two separate bugs. No reproduction steps are shown here.
Reached through

Ordinary requests, default config

No login and no special feature. For CVE-2026-109619 the demonstrated route is PHP’s built-in upload-progress tracking, which is on by default, so an ordinary POST can reach it.

The bug class

Two memory-safety flaws

CVE-2026-109618: an out-of-memory bailout fires while request memory is only half set up, and shutdown cleanup then touches the broken memory. CVE-2026-109619: a long-lived worker keeps internal state pointing at memory freed by an earlier failed request (use-after-free). Both can be steered into running attacker code.

The payoff

Code execution as the web user

The end result is remote code execution: commands run as the PHP / web-server process. From there: read secrets and DB credentials, pivot inward, drop a persistent shell.

Plate 03Attack sequence

What an intrusion actually looks like.

From the attacker’s side, it’s a routine. Watch the stages they walk through, and what you lose at each one. This is the consequence, not a how-to.

Attacker
Edge / WAF
Your PHP server
Database
Internal network
01 / 06illustrative replay · not real datathreat0
01
Recon

You’re found by a scanner, not a person

Attackers mass-scan the internet for servers in the vulnerable PHP range. Nobody singled you out; your address simply matched.

what you loseTargeted automatically, at internet scale.
02
Break in

One ordinary request, no alarm

A single normal-looking POST reaches the core flaw. No login, no upload form, and little that reads as “an attack” in your app logs.

what you loseCode now runs on your box as the web user.
03
Grip

Your server starts taking their commands

With code execution, the machine answers to them. They read your application source, its configuration and its environment.

what you loseSource, config and secrets exposed.
04
Loot

Secrets walk out the door

Database credentials, API keys, session secrets and customer records are collected and quietly sent out.

what you loseData breach. Credentials stolen.
05
Pivot

The blast spreads inward

Stolen credentials and internal reach let them move to the database, internal services and neighbouring hosts, their traffic dressed as normal web requests.

what you loseThe breach spreads past the web server.
06
Persist

They stay, even after you patch

A hidden backdoor is left behind, and ransomware may be staged. Closing the hole does not evict someone already inside.

what you loseLingering access, ransom, downtime.
Plate 04Exposure check

Are you exposed?

Pick your situation. This is a quick orientation, not a scan. When in doubt, assume exposed and patch.

Plate 05The race

Leaked early. Patched late. Exploited fast.

What makes php2shell frightening isn’t only the bug. It’s the timeline. Details got out before the fix, turning disclosure into a sprint.

2026-10-20~2 days early

Details leak

Information leaked ahead of coordinated disclosure. PHP issues an advance notice; CERT-EU publishes Security Advisory 2026-018.

2026-10-2114:00 UTC

Out-of-cycle security release

PHP ships fixes for 8.2, 8.3, 8.4 and 8.5. End-of-life branches get nothing.

2026-10-21+~15 min

Weaponisation window

Sansec warned that diffing the patch could lead to mass exploitation within minutes. It later revised that to “less likely”.

2026-10-22original date

Planned disclosure

The coordinated disclosure date the leak jumped ahead of. Cloudflare had already reported attack traffic against its customers on 10-21.

2026-10-23follow-up

Third CVE noted

PHP flags CVE-2026-115560, a narrower upload-progress bug the patched releases still have. It only matters if an app switches session.serialize_handler to php at runtime.

2026-10-26CISA KEV

Confirmed exploited

CISA adds both CVEs to the Known Exploited Vulnerabilities catalog.

Plate 06Blast radius

Who gets a patch, and who doesn’t.

PHP fixed only the supported branches. Older ones get no official release; upgrading is the way out.

PHP branchFixed inAction
8.58.5.12Update to 8.5.12 or later
8.48.4.27Update to 8.4.27 or later
8.38.3.36Update to 8.3.36 or later
8.28.2.35Update to 8.2.35+; 8.2 is EOL on 2026-12-31
8.1No release (EOL)Vendor backport if you have one, then 8.3+
8.0 / 7.x / 5.xNo release (EOL)Vendor backport if you have one, then 8.3+

Distro packages backport the fix, so their version numbers won’t match upstream. Fixed packages as of 2026-11-07:

OS / imageFixed packageNote
Debian 13 trixiephp8.4 8.4.27-1~deb13u1DSA-6574-1
Debian 12 bookwormphp8.2 8.2.35-1~deb12u1DLA-4848-1
Ubuntu 26.04php8.5 8.5.4-0ubuntu1.5USN-8948-1
Ubuntu 24.04php8.3 8.3.6-0ubuntu0.24.04.13USN-8948-1
Ubuntu 22.04php8.1 8.1.2-1ubuntu2.28USN-8948-1
Ubuntu 20.04 ESMphp7.4 7.4.3-4ubuntu2.29+esm5Ubuntu Pro required
AlmaLinux 8 / 9 / 10all php streamsFixed 2026-10-21, incl. retired streams
RHEL 8 / 9 / 10rolling outRHSB-2026-013: check the erratum for your stream
Alpine 3.24 / edgephp83 8.3.36 · php84 8.4.27 · php85 8.5.12No fix listed for 3.20–3.23
Docker php images8.5.12 · 8.4.27 · 8.3.36 · 8.2.35Re-pull and rebuild your images

Reportedly demonstrated against, among others:

WordPressDrupalJoomlaMagentoLaravelSymfonyMediaWikiphpBBWHMCS
Plate 07Defense

Patch, filter, upgrade. In that order.

Perfect detection is hard; removing the precondition is stronger. The priority is simple: get onto a patched version. Everything else buys time until you do.

✕ Myth

“Disable system() or use a WAF and you’re fine.” Not here. This is a memory-safety bug in PHP’s core, so disable_functions is irrelevant, and CSP is for client-side (XSS), not a server-side core RCE. A WAF filter helps for hours; the patch is the fix.

Primary
01

Patch to a fixed release

Update to 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35 or later (or your distro’s fixed package), restart PHP-FPM / the web server, and confirm with php -v. This is the only real cure.

02

Filter multipart POST at the edge

Until patched, block or heavily restrict multipart/form-data POSTs at a WAF / Cloudflare. Emergency rules exist as a stopgap, not a replacement for patching.

03

Disable upload-progress tracking

Set session.upload_progress.enabled=0 in php.ini or the FPM pool (not ini_set()) and restart the workers. Partial only: it blocks the known path for CVE-2026-109619, not CVE-2026-109618.

04

PHP 8.5: turn off fatal error backtraces

Only if you cannot update yet. Set fatal_error_backtraces=0 in php.ini or the FPM pool (not per request) and restart every worker. This removes the producer in the confirmed CVE-2026-109619 RCE path. Partial only: it does not cover other request-owned state.

05

Remove the per-request memory limit

Only if you cannot update yet. Set and enforce memory_limit=-1 administratively for CVE-2026-109618, restart every worker, and check that no pool, directory or app setting restores a finite limit. PHP itself calls this incomplete: a failed underlying allocation can still hit the bug. Keep post_max_size conservative while it is on.

06

Upgrade anything end-of-life

8.1, 8.0, 7.x and 5.x get no official release. Take a vendor backport if you have one, then upgrade to 8.3+.

07

Watch for post-exploitation

Alert on the web process spawning a shell, unfamiliar child processes, or new files in web dirs. Right after the patch is public is when scanning spikes.

08

Verify, don’t assume

Confirm the running PHP version on every host: containers, legacy VMs, that one forgotten box. Fleets fail where a single unpatched server hides.