October 31, 2026 — Ten days after the PHP project rushed out an emergency fix for two critical flaws in the language’s core, security agencies on both sides of the Atlantic say the bugs, now widely known as PHP2Shell, are being actively exploited. With PHP running under an estimated 70 percent of all websites, the incident has become one of the largest patching exercises of the year for hosting providers and site owners alike.
Two flaws, one nickname
The vulnerabilities are catalogued as CVE-2026-109618 and CVE-2026-109619. Both carry a 9.2 severity score under CVSS version 4, and both live in the way PHP handles incoming requests rather than in any particular application built on top of it. One can be reached by exhausting the memory available to a request; the other relies on leftover request data lingering on a server process and being reused by the next visitor. In either case the end result is the same: a remote attacker with no login can run commands on the affected server.
That distinction matters for the millions of sites built on WordPress, Drupal, Joomla and Laravel. Keeping those platforms and their extensions updated, the standard security advice, offered no protection here. Only updating PHP itself closes the hole.
A disclosure that slipped
The bugs were found during an AI-assisted audit of the PHP codebase earlier this year and were being handled under a coordinated disclosure, with a public release planned for October 22. Details, including the CVE numbers and mitigation guidance shared with critical-infrastructure operators, leaked online shortly before that date. The PHP security team responded by publishing the fixes a day early, on October 21 at 14:00 UTC, and later acknowledged in a PHP Foundation post that the process had not gone as intended.
Attackers did not wait for the official release. Cloudflare, watchTowr, Patchstack and others logged probing attempts before the patches were public, and Amazon’s threat intelligence unit later said it had seen the first attempts on October 17, four days ahead of the fix. Most early attempts appear to have failed, and the PHP team said none of the proof-of-concept code circulating before the release actually worked. That changed within days: honeypot operators reported successful remote code execution over the following weekend, and on October 27 the US Cybersecurity and Infrastructure Security Agency added both CVEs to its Known Exploited Vulnerabilities list, giving federal agencies a short deadline to patch. The UK’s NCSC went further, advising organisations to take unpatched PHP servers offline until they could be updated.
Which versions are fixed
PHP maintains four supported branches, and each received its own corrected release. The fixed versions are:
| Branch | Fixed release |
|---|---|
| PHP 8.2 | 8.2.35 |
| PHP 8.3 | 8.3.36 |
| PHP 8.4 | 8.4.27 |
| PHP 8.5 | 8.5.12 |
| PHP 8.1 and earlier | No official fix (end of life) |
A common point of confusion is that the numbers do not line up across branches: 8.2.35 is patched, while 8.3.35 is not. The third digit only counts within its own branch. Older branches, which still account for a large share of internet-facing PHP hosts according to scans published this month, received nothing from the PHP project itself. Some hosting companies and Linux distributions have backported the fix into their own builds of those versions, often identifiable by a patch number that never existed upstream, but site owners on those versions are being urged to move to a supported branch regardless.
A third, related issue, CVE-2026-115560, was disclosed by the PHP team on October 24. It has no dedicated patch yet and requires an unusual combination of settings and application code to exploit; the recommended interim measure is to disable the session.upload_progress feature.
What site owners should do
- Check the exact PHP version on every site, not just the branch. In WordPress this is visible under Tools → Site Health → Info → Server. On shared hosting the control panel often shows only “8.2” or “8.3”, which is not enough on its own.
- Compare within the branch against the table above. Anything on 8.1 or older should be upgraded to a supported branch.
- Do not assume the host has patched. Many managed providers updated servers within hours, but verification takes minutes and removes the guesswork.
- Avoid pre-release builds. Some hosts already offer PHP 8.6 release candidates; they are not on the fixed list and are not intended for production.
- Turn off
session.upload_progressunless an application specifically needs it, as a hedge against the unpatched third issue. - Keep a web application firewall in front of important sites. Cloudflare and other vendors added rules for PHP2Shell on the day of disclosure. A WAF buys time but is not a substitute for the patch.
Those managing several sites on shared hosting face an additional obstacle: without shell access there is no way to run php -v. A detailed account of verifying thirteen such sites in a single evening, including the control-panel, Site Health and temporary-file methods used, has been published by the software studio obalaban.com: PHP2Shell: How We Verified 13 Shared-Hosting Sites in One Evening (Without SSH).
PHP 8.2, currently the most widely deployed supported branch, reaches the end of its security support on December 31, 2026. For many of the sites patched this month, PHP2Shell will not be the last version change of the year.