// founder / non-security audience

PHP2Shell: What CVE-2026-109618 and CVE-2026-109619 Mean for Your Site

Two critical unauthenticated RCE flaws in PHP core, patched 21 October 2026. What they are, whether you are affected, exactly what to do, and what is actually confirmed about attacks.

8 min readAverto

On 21 October 2026, the PHP project shipped an emergency security release fixing two critical vulnerabilities in PHP core. Both allow unauthenticated remote code execution — an attacker who can send your server a web request can potentially run their own code on it, without logging in, without an account, and without finding a bug in your application.

They are collectively nicknamed php2shell. CISA issued an alert the same day urging immediate patching.

Most of the coverage so far has been written for security teams. This is the version for everyone else: if you run a website, a SaaS product, or a WordPress install and you are not sure whether this is your problem, start here.

The short version

What CVE-2026-109618 and CVE-2026-109619, both unauthenticated RCE in PHP core
Severity 9.2 (CVSS v4.0), as rated by the PHP security team
Patched in PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 — all released 21 October 2026
Who's affected Every PHP installation that serves web requests
Highest risk Apache with mod_php
Do this Patch now, then restart your PHP workers

The two bugs are different but related. CVE-2026-109618 is a memory-corruption flaw: when PHP runs out of memory mid-request, cleanup can treat partially initialised request data as if it were valid. CVE-2026-109619 is a stale-state flaw: data belonging to one request can survive after its memory is freed, and a later request handled by the same worker process can end up using it.

A score of 10.0 circulated for these before the release. The PHP Foundation has said that figure was incorrect; its own rating is 9.2.

Are you affected? Probably, and possibly without knowing it

PHP's advisory is blunt: all installations serving web requests are affected. That covers PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The project singles out mod_php as highest risk.

The detail that matters most for small teams is this: a demonstrated exploit can be triggered by an unauthenticated request before any of your application code runs. Your login screen, your input validation, your framework's protections — none of it is in the path. "We wrote our app carefully" is not a defence here, because your app never gets a say.

The second trap is not knowing you run PHP at all. You are running PHP if you run WordPress, Drupal, Joomla, Magento, Laravel, Nextcloud, phpMyAdmin, or most shared hosting. You are also running it if it is buried in a container image you inherited, or in a plugin-heavy marketing site that somebody set up years ago and nobody has touched since.

Research into the flaws found the earliest affected code path dates back to PHP 5.4.0 — released in 2012. If you have a forgotten PHP box anywhere, assume it is in scope.

What to do, in order

1. Find every PHP installation you have. Not just the obvious one. Include containers, embedded copies inside other software, staging environments, and anything on shared hosting. CISA's guidance leads with inventory for a reason: the dangerous install is the one nobody remembered.

2. Patch to a fixed version. That is 8.5.12, 8.4.27, 8.3.36 or 8.2.35. The PHP project is unambiguous that updating is the only complete fix.

3. Restart your PHP workers. A running worker keeps executing the code it started with. Patching the files on disk without recycling PHP-FPM or Apache leaves you vulnerable while believing you are done. This is the step people skip.

4. If you are on managed hosting, check your provider's status page before doing anything else. Most large hosts patched within hours and you may already be covered — but confirm it rather than assuming.

5. If you run PHP 7.4 to 8.1, there is no official release. The PHP security team has published minimal source backports, and your Linux distribution or LTS vendor may have shipped a backported fix. Check with them directly.

6. If you run PHP 7.3 or older, there is no fix and there will not be one. CISA's advice is to take those systems offline until they can be updated. That is the right call.

If you genuinely cannot patch today

There are configuration changes that reduce exposure to specific attack paths: setting memory_limit=-1, lowering post_max_size, and setting session.upload_progress.enabled=0.

Be careful with these. The PHP project states explicitly that they do not make an installation safe. The session.upload_progress change in particular has been widely circulated as "the workaround", and it addresses one path in one of the two CVEs. It is a way to buy hours, not a substitute for patching. CISA also suggests a web application firewall as interim protection, with the same caveat.

What is actually confirmed about attacks

This is where most coverage this week has been either alarmist or vague, so here is the precise picture as of 23 October.

  • Amazon Threat Intelligence observed an exploitation attempt against its honeypot network on 17 October — four days before the patch existed. It saw further attempts on 21 October with payloads and infrastructure suggesting more than one actor. Amazon has said it is unclear whether those attempts would have succeeded against real-world systems.
  • Cloudflare reported seeing early attacks emerging and has been updating its mitigations.
  • CISA said it had not observed exploitation as of its alert on 21 October. As of 22 October, neither CVE had been added to its Known Exploited Vulnerabilities catalog.
  • Independent honeypot networks reported exploitation attempts from 21 October onward.

Two things are worth separating here, because they get conflated constantly. Honeypot telemetry proves that attackers are scanning and firing payloads. It does not prove that anyone's production system has been breached. At the time of writing, we have not seen a publicly confirmed, named compromise.

That is not a reason to relax. The window between disclosure and mass exploitation for a bug this accessible is usually measured in days, the exploit chain is public, and attempts were already in flight before the patch landed. But you should be able to get accurate information from a security vendor, including when the honest answer is "attempts yes, confirmed breaches not yet."

How to tell if you were hit

CISA's guidance is to watch for PHP worker processes doing things PHP workers have no business doing. In practice:

  • A PHP process spawning a shell, or calling curl, wget, bash or sh
  • New or modified .php files in your webroot, upload directories, or cache directories — the usual outcome of this class of bug is a webshell dropped somewhere writable
  • Unexpected outbound network connections from your web server
  • Unexplained new scheduled tasks, cron entries, or admin users

If you find any of that, treat it as a compromise and not a curiosity: the credentials and API keys on that host should be considered exposed and rotated.

One thing worth checking while you are here

Plenty of servers announce their exact PHP build to anyone who asks, through the X-Powered-By and Server HTTP response headers. A response that says X-Powered-By: PHP/8.3.12 tells any passing scanner precisely which version you are on.

In a normal week this is a low-severity finding and people reasonably deprioritise it. This week it is a targeting list — it lets an attacker skip straight past every patched server to the ones still worth trying.

Our free security headers checker flags version disclosure along with the rest of your response headers, and takes about ten seconds. Turning those headers off is not a fix for php2shell and nothing here should be read as suggesting it is. Patch first. But once you have, it is worth not advertising.

The part that deserves more attention than the patch

The PHP Foundation credited the research behind php2shell to the researcher Calif (LCFR), along with OpenAI and Wiz. Both Calif and Wiz have said they used AI models in the work.

Sit with that. A memory-safety flaw reachable before authentication, in the most widely deployed server-side language on the web, in a code path that has existed since 2012 — found with AI assistance. PHP core has been read by an enormous number of competent people over fourteen years. This was not.

It did not happen in isolation. The same stretch of October brought high-severity fixes in Node.js, actively exploited flaws in Plex, a supply-chain compromise of LiteLLM that pushed credential-stealing artifacts to PyPI, Docker Hub and GHCR, and a private-key compromise at a certificate authority that one practitioner called bigger than Heartbleed. Some people have started calling it Black October.

The strategic read is not "PHP is unsafe." It is that the rate at which deep, long-dormant bugs get discovered is going up, and the tooling that is finding them is available to both sides. A security posture built around an annual penetration test and a quarterly dependency review was already thin. Against a discovery rate like this, it is a plan to find out late.

The practical response is unglamorous and mostly about cadence: know what you are running, know where it is exposed, and check continuously rather than occasionally. The teams that patched php2shell within hours were not the ones with the biggest security budgets. They were the ones who already knew what they had.

Frequently asked questions

Is php2shell one vulnerability or two?

Two. CVE-2026-109618 is a memory-corruption bug in out-of-memory handling, and CVE-2026-109619 is a stale global state bug where data from one request can be reused by a later one. Both allow unauthenticated remote code execution, and both are fixed in the same release. "php2shell" is the nickname for the exploit chain covering them.

Which PHP versions are safe?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, all released on 21 October 2026, and anything newer. PHP 8.1 and earlier receive no fix from the PHP project, though your distribution or LTS vendor may have backported one.

I set session.upload_progress.enabled to 0. Am I safe now?

No. That change blocks one attack path in one of the two vulnerabilities. The PHP project has said explicitly that configuration changes reduce exposure but do not make an installation safe. It buys you time to patch properly; it is not a fix.

I patched. Is that everything?

Restart your PHP workers — PHP-FPM, or Apache if you use mod_php. A worker process that was already running continues executing the old code, so patching without restarting leaves you exposed while the version number looks correct.

My site is just WordPress on shared hosting. Does this affect me?

Yes, WordPress runs on PHP. Most large shared hosts patched within hours of the release, so check your provider's status page first — you may already be covered. If your host has said nothing, ask them directly which PHP version you are running.

Has anyone actually been breached by this?

Exploitation attempts have been observed, including against honeypots four days before the patch was released, and Cloudflare has reported early attacks. As of 23 October there is no publicly confirmed, named production compromise, and neither CVE had been added to CISA's Known Exploited Vulnerabilities catalog as of 22 October. Attempts are confirmed; successful breaches are not yet. Patch anyway — the exploit chain is public.

← All articles

// put it into practice

Scan your own application.

Averto tests your websites, web apps, code, dependencies, containers, configuration and secrets in one place, and explains every finding in plain English.