Insights · Zero-day

PHP2Shell: two critical PHP flaws under active exploitation

Event date 21 October 2026 · Published 18 November 2026 · Redvann research

On 21 October 2026 the PHP project shipped an out-of-band release fixing two flaws, together called PHP2Shell, that let an unauthenticated attacker run code on a web server. Exploitation has been seen in the wild.

CVEs
CVE-2026-109618, CVE-2026-109619
Severity
CVSS v4.0 9.2 each
Impact
Unauthenticated remote code execution
Fixed in
PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12
No upstream fix
PHP 5.4 to 8.1 (end of life)

What happened

The two vulnerabilities sit in PHP itself, not in a framework or plugin. That means any site running an affected PHP version can be exposed, including sites built on WordPress, Drupal and Joomla.

  • CVE-2026-109618 is a memory corruption flaw in how PHP handles running out of memory. A request can be abandoned while its memory is only partly initialised, which researchers showed can be turned into code execution.
  • CVE-2026-109619 is a use-after-free in PHP's upload progress handling, where state owned by one request can outlive the memory behind it.

Both are rated 9.2 on CVSS v4.0. watchTowr reported exploitation in the wild, and Beazley Security reported on 27 October that CISA had added both CVEs to its Known Exploited Vulnerabilities catalogue.

Who is affected

Every supported branch below the fixed versions: 8.2 before 8.2.35, 8.3 before 8.3.36, 8.4 before 8.4.27 and 8.5 before 8.5.12. AWS notes that PHP 5.4 to 8.1 are end of life and will not receive an upstream fix. Qualys points out that PHP-FPM deployments need the same update.

What to do now

  1. Find every PHP runtime, including container base images, managed hosting plans and forgotten staging servers. Run php -v or check your image tags.
  2. Upgrade to 8.2.35, 8.3.36, 8.4.27 or 8.5.12 or later, then restart PHP-FPM and web server workers so the new binary is in use.
  3. Plan a migration for anything on PHP 8.1 or older. According to watchTowr, no configuration change fully closes these flaws, and a web application firewall is a stopgap, not a fix.
  4. Hunt for web shells. If a server was exposed before patching, look for new or modified PHP files in web roots, unexpected child processes spawned by the web server user, and outbound connections you cannot explain.

Remote code execution on a web server is often followed by a web shell and persistence, which is exactly the pattern we traced in our SMS platform investigation.

This article reflects what the sources below reported as of 18 November 2026. Details can change as vendors and investigators publish updates, so check the official advisories before acting.

Worried this affects you?

Our experts can check your exposure, hunt for signs of compromise and help you patch safely.

Talk to an expert