PHP2Shell: Two Critical PHP Flaws Put Millions of Websites at Risk
On October 21, 2026, the PHP team released emergency security updates for two critical vulnerabilities — and the entire web paid attention. Tracked as CVE-2026-109618 and CVE-2026-109619, both rated 9.2 out of 10 (Critical), they allow unauthenticated remote code execution on affected servers. Researchers have dubbed the pair “PHP2Shell.”
What Are the Flaws?
Both bugs live in the PHP engine itself — not in WordPress, not in your plugins, but in the language runtime underneath them. That means every application on a vulnerable PHP version is exposed, no matter how clean its own code is.
- CVE-2026-109618: when PHP runs out of memory in the middle of a request, internal request data can be left half-initialized — and PHP may later treat that invalid data as valid.
- CVE-2026-109619: memory belonging to one finished request can survive after being freed, and a later request handled by the same worker process can pick up that stale state.
Chained together, an attacker with no account on the site can run their own code on the server — reading databases, stealing files, planting backdoors.
How Big Is the Blast Radius?
PHP powers roughly 24 million websites — around three-quarters of all sites whose server language can be identified. Researchers at Wiz demonstrated the attack against current WordPress, Drupal and Joomla setups, and even showed that a simple “Hello World” app on a vulnerable PHP version could be exploited. India’s CERT-In issued a critical advisory on October 21; the UK’s National Cyber Security Centre and the US NSA told organizations to patch immediately — or take systems offline until they could.
Notably, the flaws went undetected for over a decade and were found with AI assistance — security firms Wiz and Calif used advanced AI models to locate and verify them, coordinating with the PHP team before disclosure. Details leaked a day early (October 20), forcing the emergency release timeline.
Should You Panic?
Here’s the nuanced part, and why you read ANONY instead of hype pages: on October 22, researchers at Sansec reported that mass exploitation is less likely than initially feared. A PHP2Shell attack needs specific knowledge of the target server and specific conditions on it — the public proof-of-concept exploits do not work against a default PHP installation. This isn’t Log4Shell; there is no single magic request that owns every server.
That said: “harder to exploit” is not “safe.” Patch anyway.
What to Do Right Now
- Check your PHP version. Your hosting control panel — or
php -von your own server — will tell you. - Update to a fixed release: 8.5.12, 8.4.27, 8.3.36, or 8.2.35, depending on your branch. Note: PHP 8.2 stops receiving security fixes after December 31, 2026 — plan that upgrade now.
- Running PHP 8.1 or older? Those branches are end-of-life with no official fix. Moving to a supported version is the only complete remedy.
- Can’t patch immediately? PHP published temporary mitigations — they reduce exposure but are officially described as incomplete. A web application firewall (WAF) in front of the site buys time, not safety.
- After patching: review access logs for suspicious requests around October 17–21, rotate secrets and API keys if you suspect exposure, and keep backups current.
The lesson of PHP2Shell isn’t just “update PHP.” It’s that the deepest layers of the stack — the language runtime everyone assumes is solid — can harbor decade-old flaws. Defense in depth (patching + WAF + monitoring + least privilege) is what keeps one bug from becoming a breach.



Comments
Post a Comment