If you run PHP anywhere in your environment, patch to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 now. Two critical flaws disclosed this week, CVE-2026-109618 and CVE-2026-109619 (nicknamed "PHP2Shell"), let an unauthenticated attacker run code on a server with nothing more than a crafted web request. Both carry a CVSS v4.0 score of 9.2, every earlier release is affected, and exploitation in the wild has been reported.
The patch is the easy part. The hard part is finding every copy of PHP you own, because PHP rarely shows up where you expect it. This post covers what the flaws are, how far exploitation has gone, and how to get to full coverage fast.

What happened
Details leaked before the planned embargo, so the PHP security team moved fast and shipped fixes within about a day of announcing them.
| When (UTC) | Event |
|---|---|
| Oct 21, 14:17 | NVD publishes CVE-2026-109618, marked "Undergoing Analysis" |
| Oct 21, 14:04 | CISA KEV catalog update lists neither CVE |
| Oct 21, ~14:00 | PHP publishes the official advisory and releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 |
| Oct 21, 13:47 | Fixed Windows builds appear on downloads.php.net |
| Oct 21 | watchTowr reports exploitation observed in its global honeypot network |
| Oct 20 | CERT-EU issues advisory 2026-018, advising isolation of internet-facing PHP apps |
| Oct 20 | PHP announces an emergency security release after details leak; watchTowr confirms the flaws are real |
The two vulnerabilities
Both bugs live in PHP core, not in any framework or plugin, so they reach anything that runs PHP to serve web requests.
| CVE | What goes wrong | Validated RCE on |
|---|---|---|
| Memory corruption reached through out-of-memory conditions while PHP parses multipart (file upload) requests | mod_php | |
| A use-after-free on the request that follows a fatal error | mod_php, PHP-FPM |
Affected server setups include PHP-FPM, mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP rates mod_php as the highest risk. No login is needed: the attacker only has to reach a PHP endpoint over HTTP.
Fixed versions: 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Every earlier release is affected. PHP has also published minimal source backports for 7.4, 8.0 and 8.1, but there are no official releases for those branches. Treat a backport as a stopgap and plan the upgrade.
Is it being exploited?
Yes, though reliable public exploits are still scarce. watchTowr reports exploitation in its honeypot network as of October 21, and Tenable relays Cloudflare's CTO saying Cloudflare is seeing early attacks. Other telemetry, such as Patchstack's, shows mostly probing so far. Neither CVE is in CISA's KEV catalog yet, and no public indicators of compromise have been released.
How hard the bug is to weaponize depends on the platform. VulnCheck reproduced both flaws and found:
Don't read that as permission to wait. Exploits mature quickly once a patch diff is public, and fake PoC repositories for headline CVEs often carry malware, so treat any you find with caution. Tanium's research on exploitability is in Why PHP2Shell is real (opens in a new tab).
Most at risk: internet-facing PHP applications, especially those running mod_php or on ARM64 hosts. It's also worth retro-hunting recent web server and PHP-FPM logs for unexplained worker crashes and unusual multipart requests.
Why finding PHP is harder than it looks
No one has a complete list of PHP-based applications, and anything custom-built won't be on any list. PHP hides in several places at once:
PHP is often more widespread than teams expect, and it doesn’t only run on servers. Developer tools, local web stacks and bundled applications put it on workstations too, often without registering as an installed application.
The reliable answer is to look at the binaries themselves. In testing, PHP builds from version 5 through 8 all embed their version string (X-Powered-By: PHP/x.y.z), so you can read the exact version straight from the file without running it.
How Tanium helps
Tanium itself is not affected. Tanium does not use PHP, so there is no impact to Tanium software or Tanium Cloud services.
Tanium Guardian content for PHP2Shell is available now in Tanium Cloud. The dashboard shows where PHP is installed and running so you can prioritize patching, with a single fleet-wide count of endpoints with vulnerable PHP across Linux, Windows and macOS. It combines:
Tanium Comply finds PHP on disk. For customers licensed for Comply, the dashboard includes PHP2Shell findings by endpoint, full finding details and a 7-day trend, with a pivot to the Comply findings page filtered to the two CVEs. The finding details report shows the specific on-disk locations where PHP was found, which catches copies that package and registry inventories miss. Vulnerability Library definitions for Windows, Linux and macOS are live now — sync the TVL and run an assessment to pick them up.
On-premises customers can import the Guardian content manually today. Steps and downloads are in Guardian content for on-premises customers (opens in a new tab) on the Tanium Help Center.
Know what's exposed to the internet. More than 13 million internet-facing assets run PHP versions that may be affected, according to Censys Internet Intelligence. Tanium External Attack Surface Management (EASM) discovers the internet-facing assets tied to your organization and identifies the PHP services, versions and web properties among them, with these CVEs surfaced through its coverage of exploitable and weaponized vulnerabilities. Tanium Attack Path Mapping then shows which of those exposed assets share an exposure point with a cloud instance, role or privileged identity: the places where one exploited PHP server becomes a route deeper into your environment.
Already using Tanium SBOM? Inventorying PHP versions there is a sound early step. It shows which applications carry a vulnerable PHP and need a vendor update.
What to do now
Work through these in order; the first three matter most today.
- Find every PHP install, including Windows copies that never registered as applications. Record the exact version of each.
- Rank by exposure. Internet-facing servers, mod_php setups and ARM64 hosts come first.
- Patch to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 through your OS vendor, a php.net build or your application vendor. Restart PHP-FPM and web server workers so the new binary is loaded.
- If you can't patch yet, isolate internet-facing PHP apps where you can, as CERT-EU advises, and put WAF or IDS rules in front of them (Cloudflare and VulnCheck have both shipped rules for the known vectors).
- Apply the partial setting with care.
session.upload_progress.enabled=0blocks one demonstrated path for CVE-2026-109619 only and does nothing for CVE-2026-109618. It must be set in php.ini, an FPM pool or server config, followed by a worker restart;ini_set()and.user.iniwon't apply it. - Hunt. Review recent web server and PHP-FPM logs for worker crashes and malformed multipart uploads.
- Plan off end-of-life PHP. Anything on 8.1 or older has no official fixed release.
Where fixed packages stand (as of Oct 21, 16:30 UTC)
Distro packages are still rolling out, so check your vendor before assuming a fix is available.
| Platform | Status |
|---|---|
| Ubuntu 22.04, 24.04, 26.04, 26.10 | Fixed (USN-8948-1 (opens in a new tab)) |
| Ubuntu 20.04 | Fixed for Ubuntu Pro subscribers only |
| Debian 12 and 13 | Fixed (tracker (opens in a new tab)) |
| Windows (php.net builds) | Fixed (downloads (opens in a new tab)) |
| Docker official php images | Fixed tags 8.5.12, 8.4.27, 8.3.36, 8.2.35 |
| cPanel EasyApache 4 | Fixed in 25.91 |
| Plesk for Linux | Fixed; Plesk for Windows still pending |
| RHEL 8, 9, 10 and rebuilds | Pending |
| SUSE, Alpine, Chocolatey, Homebrew core | Pending |
| Amazon Linux 2023 | Pending for php8.2 to 8.5; no fix planned for php8.1 |
The Remi repository won't ship updates today, so PHP advises switching to distro packages or building from source if you depend on it.
