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
TechnologyArticle
India's WhatsApp SIM-Binding Rule: What Changes From January 2027
India's Department of Telecommunications has ordered WhatsApp, Telegram and six other messaging apps to keep user accounts permanently linked to the SIM card used at sign-up, with enforcement starting January 1, 2027. Anyone who removes, deactivates or takes that SIM abroad risks losing access to the app on that account. The rule, issued in November 2025, is aimed at stopping cyber-fraud carried out from accounts whose original SIM is no longer in use.

TechnologyArticle
Apple's iPhone Duo Foldable: Specs, Price and How It Stacks Up to Samsung
Apple's first foldable iPhone, the iPhone Duo, went on sale October 23, 2026, starting at $1,999, after preorder demand pushed shipping estimates into 2027 within minutes. The book-style device pairs a titanium hinge and IP68 water resistance — a first for this type of foldable — with a custom Samsung Display panel, intensifying competition with Samsung's existing Galaxy Z Fold line.
TechnologyNews
US Banks Say Unvetted AI Agents Are Logging Into Customer Accounts
Major U.S. banks including JPMorgan Chase, Bank of America and Charles Schwab say they are detecting third-party AI agents accessing customer accounts using credentials users handed over themselves, Axios reported on October 22, 2026. Banks say some agents have taken actions, such as moving funds, that appear disconnected from a specific user instruction, and are now blocking or restricting the practice.

TechnologyArticle
Nvidia's Jensen Huang Dismisses Fears of a 2029 Memory Chip Glut
Nvidia CEO Jensen Huang told CNBC on October 22, 2026, that he sees no sign of a memory chip oversupply by 2029, pushing back on a theory that had helped trigger a sharp selloff in Samsung, SK Hynix and Micron shares. Speaking at Nvidia's GTC conference in Berlin, Huang said demand for high-bandwidth memory (HBM) would keep rising and that having more memory available was beneficial rather than risky.