
A pair of flaws buried in the core of PHP, the scripting language behind roughly seven in every ten websites, has triggered one of the largest emergency patching efforts the internet has seen. The vulnerabilities, collectively named PHP2Shell, were uncovered by Wiz Research with the help of frontier artificial intelligence models, and they were disclosed publicly on 21 October 2026, the same day the PHP project released its fixes.
What makes the episode unusual is not only its reach but how it was found. The weaknesses had existed in PHP’s code for more than a decade. Turning them into a working attack, however, required a complex chain of steps at the limit of what human researchers could achieve. AI changed that equation.
What was discovered
According to Wiz, the problems are memory-safety errors in the way PHP handles fatal errors, especially out-of-memory conditions, while processing web requests. When a request crashes in a particular way, PHP can leave damaged internal data behind. A later request handled by the same server process can then pick up that stale data, opening the door to memory leaks or memory corruption.
The research team reported four exploitable bugs, which the PHP project grouped under two identifiers: CVE-2026-109618 and CVE-2026-109619. Both carry a critical severity score of 9.2. In practical terms, an attacker who does not need a username or password could run their own code on a vulnerable server, take control of it, steal data or deface the website. A separate weakness allows attackers to read parts of the server’s memory, which may hold passwords, authentication tokens, API keys and certificates.
Crucially, the flaw lives in PHP itself rather than in any single application. Wiz demonstrated attacks on standard installations of WordPress, Drupal and Joomla, but noted that even a basic “Hello World” page running on an affected version could be exposed. Every PHP release from the past decade, going back to version 5.4, is affected by at least one of the issues.
How AI changed the picture
Wiz used its own AI research tool, Wiz Atlas, alongside Google’s Gemini 4 Argon and OpenAI’s GPT-5.6 Sol. The researchers credit Gemini 4 Argon with a particularly significant role in finding the vulnerability, building the exploit, detecting attacks and checking the patch.
Memory bugs are notoriously fragile to exploit. An attack that works on one server often fails on another because of small differences in versions, settings and memory layout. Wiz reports that AI models, given testing and debugging tools, could analyse failures and adjust the attack repeatedly, producing working exploits across several applications within hours. In the researchers’ assessment, a single person completed in about a week what would previously have taken a world-class team months.
Wiz compares the moment to Heartbleed in 2014 and Log4Shell in 2021, both of which reshaped how the industry thinks about shared software. The firm describes PHP2Shell as an inflection point for the AI era: when complexity no longer slows attackers down, flaws once considered too difficult to exploit become realistic targets.
A coordinated global response
Wiz found the first vulnerability on 19 August 2026, confirmed remote code execution against Drupal and WordPress within two days, and reported the findings to the PHP security team on 24 August. The PHP team, together with OpenAI and security firm Calif, then worked on a comprehensive fix. Cloud and infrastructure providers including Google Cloud, AWS, Microsoft, Cloudflare, Akamai, Fastly, Imperva, Vercel and Automattic prepared protections in advance for customers unable to patch immediately.
Even so, the public release prompted several organisations, including some government services in Europe, to take websites offline briefly while systems were updated.
What organisations should do now
For businesses across South Africa and the wider region, where PHP-based platforms such as WordPress power a large share of corporate, government, education and e-commerce websites, the guidance is clear:
Identify every system running PHP, including internal tools, hosted sites, containers and appliances.
Upgrade to a patched release. The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
For PHP 8.1 and older, which no longer receive standard support, apply the source backports published by the PHP team or plan an urgent upgrade.
Confirm with hosting providers that the underlying PHP runtime has been updated.
Watch for warning signs such as repeated server errors, memory-limit failures and unusual session cookies.
Temporary mitigations offer only partial protection. Updating PHP remains the only truly complete remedy, and with AI now accelerating both attack and defence, the window for acting is shorter than ever.






