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.
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.
| Item | Detail |
|---|---|
| CVE-2026-109618 | Use-after-free in session upload-progress unserializer; enables remote code execution |
| CVE-2026-109619 | Use-after-free in fatal-error backtraces plus an OPcache type-confusion bug |
| Severity | Rated 9.2 by the PHP security team, per SecurityWeek |
| Patched versions | PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35, released October 21, 2026 |
| Backports | Minimal fixes also issued for PHP 7.4, 8.0 and 8.1 |
| Discoverers | Wiz 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
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

TechnologyList
Best Android Apps and Utilities You Can Get Outside Google Play Store
Android users are not limited to Google Play: the open-source repository F-Droid, the anonymous Google Play client Aurora Store, the update tracker Obtainium, and the Shizuku-based catalog ShizuStore all distribute apps that the official store does not list or allow. Here are nine stores and utilities worth knowing, based on their own listings and reporting from MakeUseOf and Pocket-lint.
TechnologyArticle
PHP2Shell: the two critical PHP flaws that pushed governments offline
PHP2Shell is the nickname for two critical, unauthenticated remote-code-execution flaws in the PHP programming language — CVE-2026-109618 and CVE-2026-109619 — disclosed on 20–21 October 2026. Because PHP powers a very large share of the world's websites, the flaws led several governments to take public sites offline as a precaution. The official fix is upgrading PHP; interim server-side mitigations exist, but there is little an individual reader can do beyond watching for breach notices and using strong, unique passwords.

TechnologyComparison
iPhone Duo vs Samsung Galaxy Z Fold7: Foldable Phones Compared
Apple's first foldable, the iPhone Duo, went on sale October 23, 2026 at a starting price of $1,999 — one cent below Samsung's Galaxy Z Fold7 ($1,999.99). The two book-style foldables differ mainly in screen size, camera hardware, weight and charging speed, while landing at nearly identical entry prices more than a year apart in release.
TechnologyNews
PHP2Shell: Two Critical PHP Flaws Trigger Global Site Shutdowns
Two critical remote-code-execution flaws in the PHP language, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed "PHP2Shell," let unauthenticated attackers run code on vulnerable servers. PHP released patches on October 21, 2026, after exploit details leaked early, and security researchers say attacks began before the fixes shipped, prompting many organizations to take sites offline as a precaution.