PHP2Shell Vulnerability: Patch PHP Now or Take It Offline

CISA warns the PHP2Shell vulnerability is exploited in the wild. Patch PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 now, or take exposed systems offline.

Threat AdvisoryLast updated

What Happened

The PHP2Shell vulnerability is being exploited in the wild, and it is the kind of bug that turns an unpatched web server into a client emergency. On October 21, the PHP Foundation announced a critical PHP security release for two remote code execution flaws: CVE-2026-109618 and CVE-2026-109619. Cisco published a security advisory on October 30 rating the impact as Critical and saying its review indicates products not listed in the advisory are not affected.

CISA is treating this as urgent. It published an alert on October 21 urging organizations to patch immediately, and it added both CVEs to its Known Exploited Vulnerabilities Catalog on October 26. Known exploited means attackers are already using these flaws, so the window for patching is now.

PHP2Shell Vulnerability: Why This Hits MSPs

These are unauthenticated remote code execution flaws. An attacker can run commands on a client's server with a web request, without credentials and without user interaction. That is where MSPs lose money: after-hours incident response, forensic work, downtime, and restoring client data from backups.

Every hour a vulnerable server stays online is an hour an attacker can use to move from a web shell to a full compromise. Treat this as a patch emergency, not a routine update.

Timeline

  • October 21, 2026: The PHP Foundation announces a critical PHP security release for CVE-2026-109618 and CVE-2026-109619.
  • October 21, 2026: CISA publishes an alert titled Critical Vulnerabilities in PHP Require Immediate Patching.
  • October 21, 2026: AWS publishes security bulletin 2026-143-AWS for PHP web runtimes.
  • October 21, 2026: Google Cloud publishes GCP-2026-070 covering affected PHP versions.
  • October 22, 2026: Sophos and Veeam publish advisories. Veeam says its products are not affected.
  • October 23, 2026: CISA updates its alert with a SIGMA detection rule and partner resources.
  • October 24, 2026: Google Cloud publishes GCP-2026-072, limiting Apigee impact to Drupal-based developer portals.
  • October 26, 2026: CISA adds CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities Catalog.
  • October 28, 2026: CISA adds Linux kernel CVE-2026-46300 to the KEV Catalog, noting it can be chained with the PHP flaws to implant webshells and run commands as root.
  • October 29, 2026: Palo Alto Networks publishes a critical advisory for the PHP vulnerabilities.
  • October 30, 2026: Cisco publishes a security advisory for PHP vulnerabilities affecting its products and rates it Critical.
  • October 30, 2026: SecurityWeek reports more than 22.6 million exposed instances are potentially affected, and that PHP2Shell attacks have rooted Palo Alto firewalls but failed against WordPress.

Who Is Affected

Any organization running PHP in front of web traffic is in scope. CISA says the vulnerabilities affect all PHP installations serving web requests, including Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed. PHP considers mod_php the highest-risk configuration.

Affected versions are all PHP versions between 5.4 and 8.5. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. There is no fixed release for PHP 8.1 or earlier, so those systems are effectively end of life.

PHP is often embedded in other products. Cisco published an advisory for its products, Google Cloud says Apigee impact is limited to Drupal-based developer portals, and Palo Alto Networks published a critical advisory. AWS says a limited set of its services run affected PHP versions and it is deploying mitigations. SecurityWeek reports more than 22.6 million exposed instances are potentially affected. Veeam says its products are not affected.

Technical Details

Product: PHP. Affected versions: all PHP versions between 5.4 and 8.5. Fixed versions: PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. No fixed release exists for PHP 8.1 or earlier.

CVE-2026-109618 is remote code execution via OOM corruption. As Fortinet describes it, PHP uses longjmp() for out-of-memory errors to exit the current context and abort request handling. Some contexts may not account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger the condition and lead to remote code execution. Fortinet gives this CVE a CVSSv3 score of 9.8.

CVE-2026-109619 is remote code execution via stale global state. PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset, and may refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger the condition and produce remote code execution.

Attack vector: unauthenticated remote code execution on PHP installations serving web requests, including Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed. The PHP Foundation references advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp.

What MSPs Should Do

Treat every unpatched PHP server as exposed. The fixes are out, and both CVEs are on CISA's KEV Catalog.

  1. Inventory every system running PHP across all clients. PHP is often a component of other software, so check web servers, appliances, portals, and vendor products.
  2. Patch immediately. Upgrade to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, prioritizing internet-facing systems.
  3. Take unpatched PHP-based systems offline until they are patched, especially clients still on PHP 8.1 or earlier.
  4. Use a web application firewall as a temporary control only. CISA says it may provide some protection, and AWS says configuration changes alone are not complete mitigations.
  5. Monitor for suspicious activity, including PHP worker processes launching shells or downloading tools.
  6. Review vendor advisories for affected products, including Cisco, AWS, Google Cloud, and Palo Alto Networks. Cisco says products not listed in its advisory are not affected.

How EnterProtect Helps

EnterProtect backup keeps clean restorable copies of client systems, so after a compromise you can restore from a known-good point.

EnterProtect recovery gets a client running again after an attack, which limits downtime and the cost of an extended outage.

EnterProtect vulnerability scanning helps you find exposed software versions across the environments you manage, so you can prioritize patch work before an issue becomes an incident.

Frequently Asked Questions

What Is PHP2Shell?

PHP2Shell is the name for two critical PHP remote code execution vulnerabilities, CVE-2026-109618 and CVE-2026-109619, disclosed by the PHP Foundation on October 21, 2026. Both allow an unauthenticated attacker to execute code on a server running a vulnerable PHP version. CISA added both to its Known Exploited Vulnerabilities Catalog on October 26, 2026.

Which PHP Versions Are Affected?

All PHP versions between 5.4 and 8.5 are affected. Fixed releases are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. There is no fixed release for PHP 8.1 or earlier.

Is PHP2Shell Being Exploited in the Wild?

Yes. CISA added both CVEs to its Known Exploited Vulnerabilities Catalog on October 26, 2026. SecurityWeek reports that attacks have been targeting exposed instances for over a week, including against Palo Alto firewalls.

What Should I Do If I Cannot Patch Immediately?

CISA says to take PHP-based systems offline until they can be patched or updated. A web application firewall may provide some protection, but AWS says configuration changes alone are not complete mitigations. Prioritize internet-facing systems for patching.

Are Cisco Products Affected by the PHP2Shell Vulnerabilities?

Cisco published a security advisory for PHP vulnerabilities affecting its products and rates the security impact as Critical. Cisco says products not listed in the advisory are not affected. Check the advisory for your specific products.

How Can I Tell If a PHP Server Was Compromised?

CISA recommends monitoring for suspicious activity, including PHP worker processes launching shells or downloading tools. Review logs for signs of post-exploitation activity on internet-facing systems. Apply the patch first, then investigate anything that looks abnormal.

Sources

  • PHP2Shell core RCE vulnerability patches (CVE-2026-109618 and CVE-2026-109619) (Fortinet Psirt)
  • Critical Vulnerabilities in PHP Require Immediate Patching (CISA alerts)
  • PHP web runtimes (CVE-2026-109618 and CVE-2026-109619) (Aws Bulletins)
  • Advisory: PHP2Shell Vulnerabilities (CVE-2026-109618, CVE-2026-109619) (Sophos Psirt Feed)
  • PHP2Shell Vulnerability (CVE-2026-109618/CVE-2026-109619) (Veeam Psirt Feed)
  • PHP Stale Internal Request-State Vulnerability (Cisa Kev)
  • PHP Memory Corruption Vulnerability (Cisa Kev)
  • CISA Adds Two Known Exploited Vulnerabilities to Catalog (CISA alerts)
  • Linux Kernel Missing Initialization of a Variable Vulnerability (Cisa Kev)
  • Vulnerabilities in PHP Affecting Cisco Products: October 2026 (Cisco Psirt)
  • CVE-2026-109618 Impact of Critical Vulnerabilities in PHP (CVE-2026-109618, CVE-2026-109619) on Palo Alto Networks Products (Severity: CRITICAL) (Paloalto Psirt)
  • PHP2Shell Attacks Root Palo Alto Firewalls but Fail Against WordPress (Securityweek)
  • GCP-2026-072 (Google Cloud Security Corrected)
  • GCP-2026-070 (Google Cloud Security Corrected)

Check Your Clients' External Exposure

EnterProtect Vulnerability Scanning checks your clients' domains, addresses and exposed services. A critical CVE pages you like any critical alert, with the fix named.

Join the WaitlistJoin before it launches to get the Founding Partner Rate.

More Threat Advisories

See All Threat Advisories

Priya Nair

Partner Specialist

Priya Nair said: Hi, I'm Priya, EnterProtect's AI partner specialist. Ask me what a product does, what it costs, or what you'd keep per client.

Priya · Just now

Privacy