Update: exploitation confirmed
Updated November 14, 2026. Successful attacks are now confirmed. On October 24, Perplexity's detection and response lead Adel Karimi reported remote code execution against honeypots running Apache mod_php on PHP 8.4.26. On October 26, CISA added both CVEs to its Known Exploited Vulnerabilities (KEV) catalog, with a federal patch deadline of October 29. Amazon Threat Intelligence says attackers began targeting the flaws four days before the patches shipped.
If you have not patched yet, assume an internet-facing mod_php server may already be compromised: patch, then work through the signs-of-compromise checks below.
Overview
On October 21, 2026, the PHP project shipped emergency security releases for two critical flaws in the PHP runtime itself. Nicknamed PHP2Shell, they allow an unauthenticated remote attacker to run code on a server with a single crafted request. If you run PHP anywhere that serves web traffic, this is a patch-today item.
The short version
- CVE-2026-109618: an out-of-memory flaw in PHP.
- CVE-2026-109619: a flaw in session upload progress handling.
- Both are rated 9.2 on CVSS v4.0. A figure of 10.0 that circulated after a leak was not PHP's rating.
- Affected: PHP versions from 5.4 through 8.5.11.
- Fixed in 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
- CISA added both to its KEV catalog on October 26: they are being exploited.
Why this one is different
These are not bugs in a plugin or a framework. They sit in PHP's core, so a well-written, fully patched application can still be exposed if the runtime underneath it is vulnerable.
The risk depends on how PHP is deployed:
- Apache `mod_php` is the highest risk. A demonstrated exploit needs one unauthenticated request and triggers before your application code runs.
- PHP-FPM behaves differently, because the worker shuts down when a request fails early in setup. PHP's own analysis says FPM is susceptible to CVE-2026-109619, but a complete FPM exploit has not been shown. Do not read that as safe: the path can depend on what the running application does.
- Other web-facing setups, including php-cgi, FrankenPHP and LiteSpeed, are in scope too.
- Even without code execution, researchers note an attacker may be able to read worker process memory, which could expose passwords, tokens, API keys and certificates.
Is it being exploited?
Yes. What started as attempts became confirmed attacks within days:
- Before disclosure, Cloudflare, Amazon, watchTowr, Hadrian and Patchstack all saw widespread exploitation attempts, which they classed as unsuccessful at the time.
- On October 24, Adel Karimi (Perplexity) reported successful remote code execution against honeypots running Apache
mod_phpwith PHP 8.4.26. - On October 26, CISA added CVE-2026-109618 and CVE-2026-109619 to the Known Exploited Vulnerabilities catalog. US federal agencies had until October 29 to patch.
- Censys estimates more than 32 million PHP services were still running an affected version at the time of the KEV listing.
Two related issues followed. The PHP team published a mitigation for CVE-2026-115560, a separate remote code execution flaw that only applies to an unusual mix of configuration and application code and had no patch yet. And CVE-2026-111497 ("Broccoli2Shell"), a Brotli decoder flaw, is fixed in the PHP Windows builds 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1. Check both against your setup.
What to do now
1. Patch. Upgrade to the fixed release for your branch:
| Branch | Vulnerable | Fixed |
|---|---|---|
| 8.5 | below 8.5.12 | 8.5.12 |
| 8.4 | below 8.4.27 | 8.4.27 |
| 8.3 | below 8.3.36 | 8.3.36 |
| 8.2 | below 8.2.35 | 8.2.35 |
2. Restart everything. After updating, restart Apache, PHP-FPM and any long-running PHP workers. An updated binary on disk does not help while old workers are still running.
3. Check your distribution. Linux vendors backport fixes without changing the version string, so check your package changelog for the CVE IDs rather than relying on the version number.
4. Plan for end-of-life branches. PHP 8.1 and older no longer receive project updates. If you are still on them, you need either a vendor extended-support build or an upgrade. Source backports exist for 7.4, 8.0 and 8.1.
5. If you truly cannot patch yet, reduce exposure. PHP states that only updating fully protects a server, so treat these as stopgaps:
- For CVE-2026-109618: set
memory_limit=-1so applications cannot override it, keeppost_max_sizelow, and enforce request size limits at your web server or proxy. Avoid RLIMIT_AS and RLIMIT_DATA, which PHP warns can trigger the same path. - For CVE-2026-109619: set
session.upload_progress.enabled=0and restart workers. On PHP 8.5, also setfatal_error_backtraces=0. This blocks the confirmed session paths, not necessarily every variant.
After patching, note that the fix adds a hard memory limit. Hitting it ends the process, so review your memory settings.
Signs to look for
Researchers suggest watching for:
- unusual multipart requests followed by memory-limit errors or repeated HTTP 500 responses,
- oversized
PHPSESSIDcookies in responses, - PHP workers restarting without explanation.
If you see these on an unpatched server, assume you may be compromised and rotate any secrets the server could reach.
Background
The flaws were reported by Wiz Research, Calif and OpenAI's Codex Security team, who worked with the PHP security team and Google's Gemini team on the fix. A leak on October 20 pulled the release forward by a day, from October 22 to October 21.
How NexGenex Labs can help
If you are unsure which of your servers run affected PHP builds, or you are stuck on an end-of-life branch, our team can run a rapid exposure audit and plan a safe upgrade path. Contact us.
Sources
- 01BleepingComputer: CISA confirms PHP2Shell vulnerabilities now exploited in attacks
- 02The Hacker News: CISA confirms active exploitation of PHP2Shell
- 03CISA alert: Critical Vulnerabilities in PHP Require Immediate Patching
- 04The Hacker News: PHP Issues Emergency Patches for Two Critical PHP2Shell RCE Flaws
- 05Help Net Security: PHP2Shell, Critical PHP vulnerabilities patched
Have a project like this in mind?
Talk To Our Team →


