If your site runs on PHP, this one is for you. Two flaws in the PHP engine itself, CVE-2026-109618 and CVE-2026-109619, let a complete stranger run code on your server without ever logging in. They go by PHP2Shell. About 68% of websites use PHP (W3Techs, 16 November 2026), and attackers are still exploiting the flaw weeks later. Here’s what went wrong, who is exposed, and what to do next.
What Is the PHP Bug That Broke the Internet?
Two memory-corruption flaws in the PHP engine, both rated CVSS v4.0 9.2, allow unauthenticated remote code execution (RCE). RCE means an attacker can run their own commands on your server. PHP released fixes on 21 October 2026 (PHP security advisory), and CISA added both flaws to its Known Exploited Vulnerabilities (KEV) catalog on October 26 (CISA bulletin).
PHP security at a glance
|
Metric |
Figure |
|
Severity |
CVSS 9.2 for each CVE |
|
PHP share of sites with a known server-side language |
70.8% (W3Techs, July 2026) |
|
Fixed releases |
8.2.35, 8.3.36, 8.4.27, 8.5.12 |
|
Earliest recorded exploit attempt |
Oct 17, four days before the patch |
|
Federal patch deadline |
October 29 |
|
Successful exploitations reported by Nov 2 |
1,215 from five IPs (GreyNoise, via ThreatDefence) |
|
Attack sessions by Nov 4 |
249,075 from 608 IPs |
Note: GreyNoise’s live tracker has since risen to 1,265 successful exploitations from 25 IPs. These counts come from GreyNoise’s own vulnerability honeypot sensors, not from real victim servers.
How Does This PHP Vulnerability Work?
A fatal error, usually running out of memory, leaves stale data behind, and a later request or reused worker then treats freed memory as live data. Every known trigger is a multipart/form-data request, which PHP parses before application code runs. A use-after-free means the engine keeps using memory it has already released. Because the flaw sits below your application, a plugin or app update alone will not fix it.
The attack chain in four steps
- The attacker sends a crafted upload request that pushes a worker past its memory limit.
- The resulting fatal error leaves internal pointers dangling.
- A later request or worker in the same process reuses that stale state.
- Chained together, this enables code execution and can also leak secrets from memory.
The four memory bugs behind it
Researchers describe four bugs that all stem from fatal-error handling:
- Upload-progress unserializer: a failed allocation leaves its state published for a later request to reuse.
- Memory disclosure: a stale session ID pointer is trusted and written into a PHPSESSID cookie.
- Backtrace handler: a pointer to freed memory survives a fatal out-of-memory error.
- OPcache type confusion: two memory markers fall out of sync, so another worker resolves a slot to the wrong type.
The two CVEs compared
|
CVE |
Flaw |
Impact |
|
CVE-2026-109618 |
Out-of-memory handling interrupts PHP while request data is only partly initialized, and cleanup treats it as valid |
Memory disclosure and RCE |
|
CVE-2026-109619 |
Stale global state, plus OPcache type confusion |
RCE |
Proof it works on popular platforms
Researchers demonstrated unauthenticated RCE against the latest WordPress, Drupal, and Joomla container images at the time of testing (Wiz Research).
What Data Could Attackers Steal Through This Flaw?
They could steal secrets held in server memory, even without full code execution. The disclosure can leak passwords, session tokens, API keys, and TLS private keys through a PHPSESSID cookie, even when the app never calls session_start() (Sansec).
|
Leaked item |
Why it matters |
|
Passwords |
Let attackers sign in as real users or admins |
|
Session tokens |
Allows hijacking of logged-in accounts |
|
API keys |
Opens connected services and databases |
|
TLS private keys |
Let traffic be decrypted or impersonated |
Who Is Affected by the PHP Bug?
Almost any unpatched PHP server could be affected by the PHP Bug, because exploitation doesn’t depend on the application, and attacks can now reach network appliances too.
Where PHP sites stand
W3Techs counted PHP 8 on 46.2% of all websites against 68.2% for PHP overall (16 November 2026). By my calculations, roughly 32% of PHP sites run an older major version. Among PHP 8 sites, 13.3% run 8.1 and 5.1% run 8.0. PHP 8.1 and older have no official PHP.net fix. Source patches exist for 7.4, 8.0, and 8.1, and several distributions have backported fixes.
Beyond websites
Palo Alto Networks confirmed on October 28 that attackers were exploiting the flaws against internet-exposed PAN-OS management interfaces, chaining them with a Linux kernel privilege-escalation bug (Fragnesia, CVE-2026-46300) to gain root. Singapore’s Cyber Security Agency issued an alert on the same activity. Check Point’s gateways were hit too (see the case study below).
What Is the Timeline of the PHP Issue?
The flaws were reported in August and patched on October 21, but attacks started before the fix. Seen as a PHP issue with a leak and early exploitation, the timeline looks like this (newest first):
|
Date (2026) |
Event |
|
Nov 13 |
Check Point gateway attacks reported publicly |
|
Nov 3 |
Singapore’s CSA warns of exploitation against PAN-OS firewalls |
|
Oct 30 |
Attacks begin on Check Point gateways |
|
Oct 26 |
CISA adds both flaws to KEV |
|
Oct 21 |
PHP releases fixes at 14:00 UTC; Cloudflare reports early attacks at 07:43 UTC |
|
Oct 20 |
Details leak and RCE is confirmed |
|
Oct 17 |
Amazon records the earliest known exploit attempt in its honeypot |
|
Aug 24 |
Wiz Research reports the flaws to PHP |
Was the PHP Bug Really Exploited? A Real-World Case Study
Yes, and the damage went beyond website defacement. Check Point Research reported that from October 30, an attacker used the flaws as initial access on unpatched Security Gateways through Mobile Access portals, then escalated privileges with CVE-2026-123039. A first wave on October 30 targeted Israeli organizations, and some of those intrusions were destructive: the attackers pivoted to a VMware ESXi host and deployed a data-wiping tool. A broader second wave on November 2 hit organizations across multiple countries and sectors, with no evidence of destructive activity.
CISA updated its PHP alert, “Critical Vulnerabilities in PHP Require Immediate Patching,” urging organizations to patch right away and prioritize internet-facing systems. One caution: some early reports of successful attacks turned out to be premature. Unit 42 retracted its October 23 claim that a European government intrusion used PHP2Shell, because investigators could not establish that these flaws provided the initial access. Amazon has also not confirmed the October 17 attempt would have compromised a real server.
What this case study teaches:
- A single PHP issue can be exploited before a patch exists.
- Appliances that embed PHP need vendor patches too.
- Confirmed exploitation, not CVSS alone, should set your deadline.
Patching the PHP Bug is the only full fix. The release notes say there are no complete mitigations and that updating is the only safe choice. Applying the PHP security update is the answer.
- [ ] Run php -v on every server and container.
- [ ] Upgrade to 8.2.35, 8.3.36, 8.4.27 or 8.5.12. On 8.1 or older, install your distribution’s backport.
- [ ] Apply vendor patches to firewalls and gateways, and keep management interfaces off the public internet.
- [ ] Turn on provider WAF rules while you patch. Cloudflare, Fastly, Google, Vercel, and others published mitigations.
- [ ] Hunt for signs of compromise, starting from October 17.
- [ ] Rotate passwords, tokens, and API keys on exposed hosts.
Temporary mitigations compared
These only reduce exposure while you patch. Restart every PHP worker after changing settings, and remove them once PHP is updated.
|
Measure |
Catch |
|
Block multipart/form-data requests |
Breaks file uploads, so test checkout afterward |
|
Set session.upload_progress.enabled = 0 |
Not enough on its own, per a PHP maintainer |
|
Set memory_limit = -1 |
Lets one request use all server memory; restore the limit after patching |
How to spot signs of compromise
Look for unusual multipart requests followed by memory-limit errors, repeated HTTP 500 responses, unusually large or malformed PHPSESSID cookies, and unexplained PHP worker churn. Amazon advises starting investigations from the earliest known exploitation, October 17, not from the disclosure date (AWS Security Blog).
Do WAF Rules Replace Patching?
No. Sansec notes its own Shield is no substitute, since the affected code runs before application code. Cloudflare likewise calls its WAF an extra layer, not a replacement for fixing PHP. Treat a WAF as a short-term shield that buys time, not as the fix.
Did AI Help Find and Exploit This Flaw?
According to Wiz, partly. The researchers say AI models made it practical to adapt the exploit to different PHP versions and memory layouts. Wiz is a security vendor, so treat this as the researchers’ own account. It suggests AI is changing how PHP vulnerabilities are weaponized, and the gap between a php bug being found and being attacked may keep shrinking.
What Are the Best Habits to Avoid the Next PHP Emergency?
The best habit is to make patching routine before an emergency arrives. (This list is general best practice, not a claim from the sources.)
- Keep an inventory: know every PHP version in production, staging, and containers.
- Subscribe to advisories: follow your distribution, the PHP project, and CISA’s KEV catalog.
- Set patch targets by risk: internet-facing systems first, within days once exploitation is confirmed.
- Retire old branches: move off PHP 8.1 and older, which have no official fix.
- Log the app layer below: watch web server and process-level signals.
- Practice rotation: be able to rotate secrets within hours.
What Quick Answers Do Site Owners Need?
1. Is there another unpatched flaw?
Yes. The PHP team disclosed a separate potential RCE flaw, CVE-2026-115560, on October 23. It needs an unusual setup (an app that switches the session serialize handler at runtime while session upload progress is enabled), and PHP is handling it in the regular release cycle. Until then it recommends setting session.upload_progress.enabled = 0, the same setting advised for CVE-2026-109619 (BleepingComputer). As of 17 November no fixed release had been published, so check php.net for the current status.
2. Are these the only PHP security vulnerabilities to watch?
No. As of October 26, the PHP Foundation also released Windows builds addressing CVE-2026-111497, an out-of-bounds write in the Brotli decoder library that can affect PHP’s cURL extension when automatic response decompression is on (The Hacker News). It is a bundled-library flaw rather than a PHP core bug. Treat each new php bug as its own patch task.
What Should You Remember About the PHP Bug?
The two PHP2Shell flaws have fixes, but being patched upstream is not the same as being safe. Attackers were probing from October 17, four days before the fix, so a server updated last week may still have been hit before the update. Work through it in this order:
1. Patch what is exposed first: Update internet-facing PHP servers and containers to 8.2.35, 8.3.36, 8.4.27, or 8.5.12. If you run PHP 8.1 or older, there is no official release, so install your distribution's or vendor's backport, and plan a move to a supported branch.
2. Do not forget appliances: Firewalls, gateways, and control panels that embed PHP, including PAN-OS and Check Point Mobile Access, were exploited in the wild. Apply vendor patches and take management interfaces off the public internet.
3. Check for compromise, starting from October 17: Patching closes the door but does not remove a webshell or stolen secrets. Review logs for unusual multipart uploads followed by memory-limit errors, repeated HTTP 500 responses, oversized PHPSESSID cookies, and unexplained PHP worker restarts.
4. Rotate secrets on anything that was exposed: The memory-disclosure flaw can leak passwords, session tokens, API keys, and TLS private keys without any code execution, so treat those as potentially exposed on unpatched hosts.
5. Keep one mitigation in place for now: Leave session.upload_progress.enabled = 0 set until PHP ships the fix for CVE-2026-115560, and check php.net for that release.
6. Use a WAF as a stopgap only: It buys time while you patch, but the vulnerable code runs before your application or WAF logic, so it never replaces the update.
The bottom line: patch fast, then hunt for signs of attack from October 17 onward, and rotate secrets if there is any doubt.