PHP2Shell CVE-2026-109618: Exploited PHP RCE, Deadline Thursday
The PHP2Shell bugs have moved from “patch soon” to “exploited.” CISA put CVE-2026-109618 and CVE-2026-109619 on its Known Exploited Vulnerabilities list on Monday and gave federal agencies until Thursday. Honeypots have already been taken over. Updating PHP is necessary but not sufficient: the old code keeps running until every worker restarts, and the first exploitation attempt predates the patch by four days.
What: PHP2Shell, two memory-safety flaws in the PHP runtime. CVE-2026-109618 corrupts request data during out-of-memory handling; CVE-2026-109619 lets one request reuse freed state left by an earlier one on the same worker. PHP rates each CVSS v4.0 9.2 and says both allow unauthenticated remote code execution.
Status: Exploited in the wild. Added to CISA’s KEV catalog on Monday, October 26, 2026. Successful takeovers of PHP 8.4.26 honeypots were reported on October 24.
Deadline: Thursday, October 29, 2026 for U.S. federal civilian agencies.
Fix: PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or your distribution’s backported package. Then restart every PHP worker. PHP 7.4 to 8.1 have source-only backports; 5.4 to 7.3 get nothing from the PHP project.
Key takeaways
- PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is now a confirmed, exploited remote code execution risk for any PHP install serving web traffic, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed.
- The fixed PHP releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Older branches need a vendor or LTS backport, or a source build.
- Installing the package does not patch a running server. Vulnerable code stays in memory until PHP-FPM, Apache or the relevant service restarts.
- Scope your hunt from October 17, not October 21. Amazon recorded an exploitation attempt against its honeypots four days before the patch.
- The PHP2Shell config workarounds are partial.
memory_limit=-1andsession.upload_progress.enabled=0reduce risk; PHP says only updating fixes it.
Executive Summary
PHP2Shell is now under attack, and the window to treat it as routine patching has closed.
The PHP project shipped fixes for the two PHP2Shell flaws on Wednesday, October 21, a day earlier than planned because the CVE identifiers had already leaked. At that point, the PHP team said none of the leaked proof-of-concept code it had examined actually worked. That changed over the weekend. According to Tenable’s running FAQ, a detection engineer reported on October 24 that three honeypots running PHP 8.4.26 under single-worker Apache mod_php had been compromised in a way consistent with CVE-2026-109618. Trail of Bits said on October 26 that working exploits succeed against unpatched PHP 8.2 through 8.5. CISA added both CVEs to KEV the same day.
DataWater flagged PHP2Shell as an emerging problem in our SiteGuard WAF briefing on CVE-2026-106931. This is the dedicated follow-up now that exploitation is confirmed.
The bottom line: update PHP on every internet-facing server, restart the workers, and check logs back to October 17. Anything you cannot update should come off the internet until it can be.
Why This Matters to CISOs and Security Leaders
The blast radius is the web itself. PHP runs on roughly 70% of websites with a known server-side language. Exposure counts vary by method: BleepingComputer cites a VirusTotal estimate of more than 5.1 million exposed PHP hosts, while estimates cited by Tenable range from 1.3 million potentially vulnerable hosts to 1.9 million running PHP. Any of these numbers makes PHP2Shell a mass-exploitation candidate.
It is not only your code. Researchers demonstrated pre-authentication shells on specific versions of WordPress, Drupal, Joomla, Magento, MediaWiki, Laravel, Symfony and phpBB. PHP also hides inside appliances and vendor products. One report says Palo Alto Networks confirmed every PAN-OS and Panorama version is affected and had no fixed release as of October 22 (single-source), and that Fortinet and Cisco were still assessing dozens of products.
Your team is already stretched. The same people are cleaning up the Collabora web shells in Nextcloud (CVE-2026-110447) and the Plex2Shell chain on media servers. PHP2Shell touches far more systems than either.
Ask for two numbers by end of day: how many internet-facing hosts run PHP, and how many of those have been both updated and restarted since October 21. If nobody can answer the second number, assume you are still exposed.
The Timeline
| Date (2026) | What happened |
|---|---|
| Saturday, Oct 17 | Amazon’s MadPot honeypots record a PHP2Shell exploitation attempt from an anonymization-service IP, while the bugs are still under embargo |
| Tuesday, Oct 20 | CVE IDs leak publicly; PHP posts advance notice of a security release; CERT-EU issues advisory 2026-018 |
| Wednesday, Oct 21 | PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 a day early; Cloudflare reports early attacks and ships WAF rules |
| Friday, Oct 23 | PHP publishes an informational advisory on a third, unpatched issue, CVE-2026-115560 |
| Saturday, Oct 24 | Successful exploitation of three PHP 8.4.26 mod_php honeypots reported |
| Monday, Oct 26 | CISA adds CVE-2026-109618 and CVE-2026-109619 to KEV; Trail of Bits reports working exploits on 8.2–8.5 |
| Thursday, Oct 29 | CISA remediation deadline for federal civilian agencies |
A PHP update that was installed but never restarted is a patch on paper only.
Vulnerability & Exploit Analysis
What the two PHP2Shell CVEs are
CVE-2026-109618 lives in PHP’s out-of-memory handling. If memory runs out while the runtime is still building its internal request data, the cleanup that follows can treat half-built data as valid. That corruption is the route to code execution.
CVE-2026-109619 is a use-after-free. Some state belonging to one request outlives the memory behind it, and the next request handled by the same worker can touch it before normal setup resets it. PHP’s advisory confirms memory disclosure as one impact.
PHP scores both at CVSS v4.0 9.2. Identifiers that circulated before the release carried a 10.0; the PHP Foundation says that score was wrong. PHP considers mod_php the riskiest setup, because the demonstrated exploit fires on an unauthenticated request before any application code runs. According to Tenable, one researcher traces the oldest affected code back to PHP 5.4.0.
Affected and fixed versions
| PHP branch | Vulnerable | Fixed in |
|---|---|---|
| 8.5 | Before 8.5.12 | 8.5.12 |
| 8.4 | Before 8.4.27 | 8.4.27 |
| 8.3 | Before 8.3.36 | 8.3.36 |
| 8.2 | Before 8.2.35 | 8.2.35 |
| 7.4, 8.0, 8.1 | All | No official release; PHP published minimal source backports. Use a distribution or LTS vendor package. |
| 5.4 – 7.3 | All | End of life; no fix from the PHP project |
Two practical notes. First, PHP 8.4.27 and 8.5.12 carry a known regression that can crash some applications using SimpleXML; it comes from an unrelated garbage-collector change, and a fix was merged but not released as of October 26. Test, but do not let it stall the update. Second, the Windows rebuilds released October 26 (such as 8.4.27-1) address a separate Brotli library flaw and do not change the PHP version.
Interim protections
If you cannot update today, PHP’s advisory suggests setting memory_limit=-1 in a way applications cannot override (for CVE-2026-109618) and session.upload_progress.enabled=0 (for CVE-2026-109619), plus fatal_error_backtraces=0 on PHP 8.5. Restart workers after changing settings. Cloudflare has WAF rules for known vectors on all plans, but they only cover traffic that passes through Cloudflare. The UK NCSC advises considering taking unfixable systems offline.
Restarts destroy evidence. Google Cloud guidance, developed with Mandiant input and cited by Tenable, recommends capturing PHP worker memory on servers that show signs of probing before you restart them. The same restart that finally loads the patched code also wipes the clearest record of whether an attacker got in. Decide which hosts get a memory capture first, then restart.
Threat Intelligence Breakdown
Attribution: Unknown. No source has named an actor. Amazon says the pre-disclosure attempt came from a commercial anonymization service, and that later attempts suggest more than one actor is involved. How anyone obtained exploit details while the bugs were under embargo is also unknown. CISA has not published further detail on the attacks.
What exploitation looks like so far: the confirmed honeypot takeovers used a deliberately favorable single-worker mod_php setup, and the traffic closely matched a family of public proofs of concept. The activity matched CVE-2026-109618 only, with no sign of CVE-2026-109619. watchTowr says it reproduced both bugs and has seen attempts against both. Treat lab success as a floor, not a measure of how reliable attacks are against your configuration.
Indicators of compromise: none of the sources reviewed for this briefing published IP addresses, hashes or domains. Detection for now rests on behavior: web server or PHP processes spawning shells or system commands, unexpected new PHP files in web roots, worker crashes clustered with odd form submissions, and memory exhaustion on PHP workers. Datadog says it has added SIEM detections for suspicious command execution by web servers and PHP processes.
Third issue to watch: CVE-2026-115560, a session upload progress flaw that PHP calls an unlikely RCE vector requiring an unusual mix of configuration and application code. It has no patch yet. The same session.upload_progress.enabled=0 setting mitigates it.
Enterprise Impact
Web applications and their data: code execution as the web server user typically means database credentials from configuration files, customer data and a foothold for lateral movement.
Shadow PHP: forgotten marketing sites, intranet tools, control panels and vendor appliances all embed PHP. Several experts expect a long tail of incidents from systems nobody remembers owning.
Vendor dependency: where PHP ships inside a product you cannot patch yourself, such as firewalls or management consoles, your exposure depends on the vendor’s timeline. Restrict management interfaces now rather than waiting.
Audit trail: a KEV entry with a three-day deadline will show up in audits and cyber-insurance questionnaires. Record when each host was updated, when it was restarted, and what your log review from October 17 onward found.
What Security Leaders Should Do Next
Today
- Inventory every PHP runtime serving web traffic, internet-facing first, including containers, images and appliances.
- Capture memory on suspicious hosts showing probing or worker crashes, before you restart them.
- Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 or your distribution’s fixed package, then restart PHP-FPM, Apache and any other PHP service.
- Apply the interim settings or take the host offline wherever you cannot update today.
Within 48 hours
- Verify the running version, not just the installed package, on each host after restart.
- Hunt from October 17 onward for shells or commands spawned by web or PHP processes, new PHP files in web roots, and memory-exhaustion errors.
- Rebuild and rotate secrets on any host with signs of compromise: database passwords, API keys and anything stored in application configuration.
- Chase vendors for PHP2Shell status on every appliance and SaaS product that embeds PHP, and restrict their management interfaces meanwhile.
Long-term
- Retire end-of-life PHP. Branches 5.4 to 7.3 will never get a fix from the PHP project.
- Make “restarted” part of patch verification for every interpreter and long-running service, not just PHP.
- Track language runtimes in your asset inventory so the next runtime-level bug starts with a list, not a scramble.
Get zero-day alerts before they hit the headlines
DataWater’s executive threat briefing: the exploited CVEs, the deadlines and the first three actions to take.
Winners and Losers
| Better positioned | More exposed |
|---|---|
| Teams on supported PHP 8.2–8.5 that updated and restarted on October 21 | Teams that installed packages but never restarted workers |
| Sites already behind a WAF with PHP2Shell rules | Directly exposed servers, especially Apache with mod_php |
| Organizations with a runtime inventory | Organizations with forgotten PHP apps and end-of-life 5.x/7.x builds |
| Teams that captured memory before restarting suspect hosts | Appliance owners waiting on vendor fixes for embedded PHP |
Final Executive Takeaway
PHP2Shell is the widest-reaching exploited bug on CISA’s list this month.
The fix exists and is simple. The failure modes are not: unrestarted workers, forgotten servers, end-of-life branches and appliances you cannot patch yourself.
Update. Restart. Verify the running version. Look back to October 17.
Frequently Asked Questions
What is PHP2Shell?
PHP2Shell is the name for two PHP runtime flaws, CVE-2026-109618 and CVE-2026-109619, that can let an unauthenticated attacker run code on a web server. PHP fixed them on October 21, 2026, and CISA added both to its Known Exploited Vulnerabilities catalog on October 26, 2026.
Which PHP versions fix CVE-2026-109618 and CVE-2026-109619?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix both PHP2Shell flaws, CVE-2026-109618 and CVE-2026-109619. PHP 7.4 to 8.1 have source backports only, so use a distribution or LTS vendor package, and PHP 5.4 to 7.3 get no fix from the PHP project.
Is PHP2Shell being exploited?
Yes. PHP2Shell exploitation is confirmed: honeypots running PHP 8.4.26 were compromised on October 24, 2026 in activity matching CVE-2026-109618, and Amazon recorded an attempt as early as October 17. CISA added CVE-2026-109618 and CVE-2026-109619 to KEV on October 26.
What is the CISA deadline for PHP2Shell?
CISA set Thursday, October 29, 2026 as the remediation deadline for U.S. federal civilian agencies to address the PHP2Shell flaws CVE-2026-109618 and CVE-2026-109619. Other organizations should treat it as a benchmark.
Is updating PHP enough to stop PHP2Shell?
Not on its own. After updating PHP to fix CVE-2026-109618 and CVE-2026-109619, you must restart PHP-FPM, Apache or other PHP services, because the vulnerable code stays loaded in memory until the worker restarts. Also review logs back to October 17 for signs of PHP2Shell compromise.
Which PHP setups are affected by PHP2Shell?
PHP says any installation serving web requests is affected by PHP2Shell, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. Apache mod_php carries the highest risk for CVE-2026-109618 because the demonstrated exploit runs before any application code.
Who is behind the PHP2Shell attacks?
Attribution for PHP2Shell exploitation is unknown. No threat actor has been named for attacks on CVE-2026-109618 or CVE-2026-109619, and no source reviewed here published IoCs. Amazon says the activity suggests multiple actors.
Sources
Primary sources: CISA Known Exploited Vulnerabilities catalog entries for CVE-2026-109618 and CVE-2026-109619 (added October 26, 2026, due October 29, 2026, as reported by BleepingComputer and Tenable); PHP security advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp (October 21, 2026), as summarized by the sources below. Reporting reviewed: BleepingComputer (October 27); Tenable PHP2Shell FAQ (updated October 26); Help Net Security (October 21; vendor-product status single-source); NCSC-NL php2shell repository; Datadog Security Labs. Reflects public reporting as of October 27, 2026.
Related posts:
CVE-2026-60004: CISA Gives Federal Agencies Until August 28 to Patch a Gitea Bug That Needs No Stole...

CVE-2026-0257: CISA Adds Actively Exploited Palo Alto PAN-OS Authentication Bypass to KEV — Two Atta...



