Technology · News
PHP2Shell: Two Critical PHP Flaws Trigger Global Site Shutdowns
Published:
In brief
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.
PHP, the scripting language that runs a large share of the web's server-side code, was hit by two critical security flaws disclosed in October 2026. Collectively nicknamed "PHP2Shell" and tracked as CVE-2026-109618 and CVE-2026-109619, the bugs allow an attacker with no account or password to execute arbitrary code on an affected web server.
What the vulnerabilities do
According to security firm watchTowr, CVE-2026-109618 occurs when PHP runs out of memory partway through setting up an incoming request, leaving internal request data only partially initialized; PHP's cleanup routine then mistakenly treats that invalid data as valid. CVE-2026-109619 involves internal state tied to one request surviving after the memory it points to has already been freed, so a later request handled by the same worker process can use that stale state before normal initialization resets it.
Research firm Wiz, which examined the flaws, told Help Net Security that the issues had gone unnoticed for years and rank among the most severe ever found in the language. Beyond full remote code execution, watchTowr said the bugs can also crash PHP worker processes, allow arbitrary file reads, or leak server memory.
Who found it, and when
The two flaws were reported through separate research efforts. WatchTowr's advisory credits the security research team at Calif with the discovery, while Help Net Security's coverage attributes identification and disclosure to researchers at Wiz. The disclosure timeline was unusual: details intended to stay under embargo leaked publicly on October 20, 2026, and watchTowr confirmed the leaked information was genuine. PHP's maintainers responded by releasing patches a day ahead of the originally planned October 22 date, at 14:00 UTC on October 21, 2026.
Scope: who runs vulnerable PHP
PHP remains one of the most widely used server-side languages on the web, and the flaws can affect any setup that processes incoming HTTP requests through it. Affected setups include PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, per watchTowr, meaning the bug sits in the server layer itself rather than in any single application.
| PHP branch | Vulnerable versions | Fixed version |
|---|---|---|
| 8.5.x | Below 8.5.12 | 8.5.12 |
| 8.4.x | Below 8.4.27 | 8.4.27 |
| 8.3.x | Below 8.3.36 | 8.3.36 |
| 8.2.x | Below 8.2.35 | 8.2.35 |
| 7.4, 8.0, 8.1 | All versions | No official PHP core patch; distribution/LTS vendor backports or move to a supported branch |
| 7.3 and older | All versions | No fix available; upgrade to a supported branch required |
Because PHP 7.4, 8.0 and 8.1 are no longer officially supported, watchTowr says there is no patch from the PHP core project for sites still running those branches, though Linux distribution or long-term-support vendor backports may be available as an interim option; otherwise those installations need to move to a supported branch. PHP 7.3 and older have no fix at all, according to watchTowr. PHP's advisory states that no configuration change fully closes the vulnerabilities short of updating the software.
Impact and exploitation
Help Net Security reported that a honeypot network run by Amazon detected exploitation attempts on October 17, 2026 — four days before the public patch — suggesting some attackers had early access to exploit details. WatchTowr said its own "Attacker Eye" honeypot network observed active exploitation in the wild continuing after the October 21 patch release. Content management systems built on PHP, including WordPress, Drupal and Joomla, along with Laravel-based applications and e-commerce platforms, are all within the affected footprint because they run on top of the vulnerable PHP engine.
As patching got underway, government agencies, online forums, gaming platforms and some infrastructure-linked sites were taken offline as a precaution while operators applied fixes, according to the coverage summarized on the PHP2Shell Wikipedia entry. The UK's National Cyber Security Centre urged organizations that could not patch immediately to take vulnerable systems offline instead, Help Net Security reported.
These findings rank among the most severe vulnerabilities discovered in PHP, and arguably in software history.
Severity rating and what site operators should do
PHP's own developers rated both flaws 9.2 out of 10 on the CVSS v4.0 scale, a "critical" score, according to watchTowr's advisory. The clear remediation path, per both PHP's advisory and watchTowr, is updating to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 depending on which branch a server runs; sites on 7.4, 8.0 or 8.1 should use a distribution backport or move to a supported branch, while servers on 7.3 or older have no fix available and need to upgrade.
Questions
- What is PHP2Shell?
- PHP2Shell is the nickname for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that let an attacker with no login credentials execute code on a web server running vulnerable PHP.
- Which PHP versions are affected?
- Versions before 8.2.35, 8.3.36, 8.4.27 and 8.5.12 are vulnerable and have official fixes. PHP 7.4, 8.0 and 8.1 are also affected; since those branches are unsupported, there is no official PHP core patch, though distribution or LTS vendor backports may be available, according to watchTowr. PHP 7.3 and older have no fix available at all.
- Is PHP2Shell being actively exploited?
- Yes. Help Net Security reported exploitation attempts detected via an Amazon honeypot as early as October 17, 2026, and watchTowr said its honeypot network observed active in-the-wild exploitation after the October 21 patch.
- How many websites could be affected?
- PHP remains one of the most widely used server-side languages on the web, including powering sites built on WordPress, Drupal and Joomla, so the two flaws have a broad potential reach, according to watchTowr and the summary on the PHP2Shell Wikipedia entry.
- How can a website operator fix it?
- PHP's advisory and watchTowr both say the only complete fix is updating to a patched release — 8.5.12, 8.4.27, 8.3.36 or 8.2.35 depending on the branch — since no configuration change fully closes the vulnerabilities. Sites on unsupported branches (7.4, 8.0, 8.1, or 7.3 and older) need to use vendor backports where available or upgrade to a supported branch.
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

TechnologyComparison
PlayStation 5 Pro vs a Matching Gaming PC: Price and Performance Compared
Sony launched the PlayStation 5 Pro at $699.99 in November 2024, but according to Engadget's reporting its US price had climbed to roughly $900 by April 2026, and one October 2026 SlashGear estimate puts it near $1,580. A PC built around the GPU and CPU that benchmarkers consider closest to the console costs roughly $1,050 to $1,530 depending on the parts chosen, according to SlashGear and BGR testing.
TechnologyNews
Two Critical PHP Flaws Dubbed "PHP2Shell" Expose Most of the Web
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.

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.