Protego field desk
Cybersecurity5 min read

PHP2Shell (CVE-2026-109618/109619): What Happened & What to Do

CISA added PHP2Shell CVEs to KEV on October 26, 2026, and researchers confirmed RCE. Here is what happened, what the October 21 patches cover, and why CVE-2026-115560 still needs a stopgap.

I
Microsoft Cloud Solution Architect

Latest update (October 26, 2026)

Update, October 26, 2026: CISA added both CVEs to its KEV catalog (federal deadline October 29), and researchers confirmed successful RCE against an unpatched PHP 8.4.26 Apache mod_php honeypot. PHP also disclosed CVE-2026-115560, a separate bug the October 21 releases don't fix; keep session.upload_progress.enabled=0 until the next release. Full details: /tools/php2shell-checker#cve-2026-115560.

What happened

On October 21, 2026, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The releases fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, nicknamed "PHP2Shell." Both can let an attacker run code on a server without logging in. The PHP project rated both flaws CVSS v4.0 9.2 and says updating is the only complete fix.

Watch the 1-minute video explainer: https://www.youtube.com/watch?v=PxkhRUF7FEM

The timeline moved fast:

  • October 17: According to SecurityWeek, Amazon saw the first exploitation attempt against a honeypot, while the flaws were still secret.
  • October 20: The PHP security team announced an upcoming critical release. SecurityWeek reported that details leaked online the same day.
  • October 21: The fixed releases and the official security advisory were published on php.net.
  • October 22: SecurityWeek reported that PHP2Shell "is now being broadly exploited in the wild." Cloudflare said attempts reached the millions. On October 26, CISA added both CVEs to its Known Exploited Vulnerabilities catalog, and researchers confirmed successful RCE against an unpatched PHP 8.4.26 Apache mod_php honeypot.

The first flaw involves how PHP handles out-of-memory errors partway through a request. The second involves internal data that stays in memory after it's freed and can be reused by a later request. Either way, the attacker's code runs with the web server's permissions.

Why it matters

The bug is in PHP itself, not in a plugin or framework. The advisory says every PHP installation serving web requests is affected, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The PHP team considers mod_php the highest risk.

That means WordPress, Joomla, Drupal, Laravel, Magento and custom PHP sites are all in scope. Updating your CMS won't fix it.

The scale is large. Censys counted roughly 1.57 million internet-facing hosts with an identifiable, unpatched PHP version. VulnCheck said at least 1 million hosts run end-of-life PHP. PHP 8.1 and older get no upstream fix.

Two more warnings:

  • Some "exploits" are fake. watchTowr found that the public proof-of-concept code it reviewed didn't work or crashed targets. JFrog found fake PoCs and malware on GitHub. Don't run random checker scripts from GitHub.
  • A WAF is only a stopgap. Cloudflare deployed rules against known exploit methods but called them temporary. The UK NCSC told organizations to update PHP immediately or take systems offline until they can.

Who should act now

  • Website owners on WordPress, Laravel or any other PHP stack: update PHP, restart PHP workers, and confirm the version your web server actually runs.
  • Shared and managed hosting customers: ask your host to confirm in writing that the October 21 fixes are deployed.
  • Enterprises: find every PHP system, including legacy apps, containers and vendor appliances. Fix internet-facing systems first, and check for signs of compromise back to October 17.
  • Anyone on PHP 8.1 or older: plan an upgrade now. There's no upstream release for your branch.

Get the full patch guide and check your site

Check your site and read the full PHP2Shell patch guide →

Our free PHP2Shell checker makes one normal request to your homepage. It shows whether your site exposes a PHP version and whether that version is patched. It sends no exploit code. The same page has the complete guide:

  • Commands to check your PHP version
  • Update steps for Debian, RHEL and Docker
  • The official stopgaps from the PHP advisory
  • An 8-step response plan for enterprises
  • Signs of compromise to look for
  • A 10-question FAQ

For a broader look at your site, run the free vulnerability scanner or an automated pentest.

Sources

RD / 01

Reader desk

Discuss this guide

Rate the guide or ask a practical follow-up. Clear questions publish immediately; uncertain submissions wait for review.

Get the free Cloud Security Checklist

A 20-point hardening checklist for AWS, Azure, and GCP workloads. No spam, unsubscribe anytime.

I

Microsoft Cloud Solution Architect

Cloud Solution Architect with deep expertise in Microsoft Azure and a strong background in systems and IT infrastructure. Passionate about cloud technologies, security best practices, and helping organizations modernize their infrastructure.

Share this article

Licensed under CC BY 4.0: you may share and adapt this article with attribution to Protego.