Technology · News

Two Critical PHP Flaws Dubbed "PHP2Shell" Expose Most of the Web

Published:

In brief

Two critical PHP vulnerabilities nicknamed "PHP2Shell" let attackers run malicious code on web servers without logging in, according to the security firm that found them. Patches for CVE-2026-109618 and CVE-2026-109619 shipped on October 21, 2026, months after researchers first reported the bugs, and multiple firms have since logged exploitation attempts in the wild.

On October 21, 2026, the PHP project released patched versions of the language after security researchers disclosed two critical remote-code-execution vulnerabilities collectively nicknamed "PHP2Shell." The flaws, tracked as CVE-2026-109618 and CVE-2026-109619, were found by the cloud-security company Wiz Research, which credited the organizations Calif and OpenAI for contributing to discovery, coordination and patch verification, according to Wiz's public writeup.

What the two vulnerabilities do

Wiz says the two CVEs actually bundle four distinct underlying bugs. CVE-2026-109618 covers a use-after-free flaw in PHP's session upload-progress unserializer, which can be abused for remote code execution, plus a related bug that can leak memory from a running PHP worker process without authentication. CVE-2026-109619 covers a use-after-free in PHP's fatal-error backtrace handling and a separate type-confusion flaw in OPcache, PHP's shared-memory bytecode cache.

According to Wiz, both issues sit in code paths that almost every PHP request passes through: memory management and error handling. The PHP Foundation made the same point in comments reported by the outlet SecurityWeek.

Both issues sit in parts of PHP that nearly every request touches: memory management and error handling.

— The PHP Foundation, quoted by SecurityWeek

Discovery timeline

Wiz's research team — named in its blog post as Sagi Tzadik, Shir Tamari, Nir Ohfeld and Tomer Schwartz — says it found the first bug on August 19, 2026, and confirmed working remote-code-execution exploits against WordPress and Drupal installations the following two days. The team reported its findings to the PHP security team on August 24, 2026. Public disclosure and the corresponding patches followed on October 21, 2026.

Wiz says it used AI coding models, including Google's Gemini 4 Argon and OpenAI's GPT-5.6 Sol, to help build proof-of-concept exploits, describing work that would previously have taken specialist researchers months as achievable in hours.

Who is affected

Wiz states the underlying flaws exist in every PHP version released over roughly the past decade, with at least one of the two CVEs present from PHP 5.4 onward. The company says it confirmed unauthenticated remote code execution against current releases of three widely used content-management systems: WordPress, Drupal and Joomla. SecurityWeek reports the bugs affect common PHP deployment methods, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.

Wiz frames the scale of exposure as affecting roughly 70% of the Internet, a reference to the share of websites that run on PHP in some form, according to the company's writeup.

PHP2Shell at a glance
ItemDetail
CVE-2026-109618Use-after-free in session upload-progress unserializer; enables remote code execution
CVE-2026-109619Use-after-free in fatal-error backtraces plus an OPcache type-confusion bug
SeverityRated 9.2 by the PHP security team, per SecurityWeek
Patched versionsPHP 8.5.12, 8.4.27, 8.3.36, 8.2.35, released October 21, 2026
BackportsMinimal fixes also issued for PHP 7.4, 8.0 and 8.1
DiscoverersWiz Research, crediting Calif and OpenAI for contributions to discovery, coordination and patch verification

Exploitation attempts since disclosure

Multiple security firms monitored attack traffic around the disclosure. SecurityWeek reports that the firm watchTowr detected the first in-the-wild exploitation attempts around the time patches landed but had not confirmed a successful compromise. Hadrian told SecurityWeek it observed large-scale exploitation attempts before the patches were even released, concentrated on PHP's session upload-progress code path. Patchstack, Cloudflare and Vega logged attempts on the day of disclosure, and Amazon said it had identified exploitation attempts four days before the patches shipped.

Why PHP's scale makes this significant

PHP was created by Danish-Canadian programmer Rasmus Lerdorf, first released in 1995, and remains one of the most widely used server-side scripting languages for building websites, according to Wikipedia. The same source notes that as of November 2025, more than half of PHP-powered websites were still running the unsupported PHP 7 branch, and about 9.7% were still on PHP 5, which was discontinued years earlier — a legacy-software pattern that security researchers say complicates rapid patching across the wider PHP ecosystem.

Questions

What is PHP2Shell?
PHP2Shell is the nickname researchers gave to two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow an attacker to run code on a web server without logging in, according to Wiz Research.
Which PHP versions are affected?
Wiz says at least one of the two flaws affects PHP versions from 5.4 through current releases. Patches were issued for PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, with minimal backports for PHP 7.4, 8.0 and 8.1, per SecurityWeek.
Has PHP2Shell actually been exploited?
Yes. SecurityWeek reports that watchTowr, Hadrian, Patchstack, Cloudflare, Vega and Amazon all separately logged exploitation attempts, some of them before the official patches were released on October 21, 2026.
Who discovered the PHP2Shell vulnerabilities?
The cloud-security firm Wiz found the bugs starting August 19, 2026, and reported them to the PHP security team on August 24. Wiz credited the organizations Calif and OpenAI for contributing to discovery, coordination and patch verification, according to its writeup.
Which platforms were confirmed vulnerable?
Wiz says it demonstrated unauthenticated remote code execution against current releases of WordPress, Drupal and Joomla running on affected PHP versions.

Sources

  1. Wiz — "PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet"
  2. SecurityWeek — "PHP2Shell Patches Land as First Exploitation Attempts Hit Sensors"
  3. Wikipedia — "PHP"

This piece was prepared with artificial intelligence and passed an automated source check before publication. If you see an error, ask for a correction. Request a correction or reply · How we make this

Related