PHP2Shell: AI Exposes Critical Flaws in the Language Behind 70% of the Web

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.

Source: https://www.php.net/archive/2026.php#2026-10-21-5.

Hot this week

South African-Founded Lupa Robotics Raises US$1.67 Million to Teach Robots Human-Like Dexterity

This is a strong technology magazine story because it covers robotics, artificial intelligence, South African innovation, startup funding and the future of automation. It also offers a different angle from the usual AI announcements and cybersecurity stories.

South Africa’s R10 Billion Bee-Pollination Economy Puts Farmers and Beekeepers in the Spotlight

South Africa's honeybee pollination industry contributes more than R10 billion annually to agriculture. Stronger partnerships between farmers and beekeepers are becoming essential for improving crop yields, protecting food security and supporting sustainable farming.

South Africa’s New Water Restrictions Put Western Cape Farmers and Citrus Exports Under Pressure

South Africa's new 15% irrigation water cuts put Western Cape farmers under pressure, raising concerns about citrus production, agricultural exports, food security and the urgent need for sustainable water management.

IDC Moves to Take Control of ArcelorMittal South Africa in R1.1 Billion Steel Industry Rescue Deal

South Africa’s steel industry faces a major turning point as the IDC moves to recapitalise ArcelorMittal South Africa, with potential consequences for construction, mining, manufacturing, jobs and the country’s industrial future and infrastructure investment.

S&P Upgrades South Africa’s Credit Rating as Improving Public Finances Boost Investor Confidence

South Africa moves closer to investment-grade status as S&P upgrades its sovereign credit ratings, highlighting improved public finances, stronger fiscal discipline and renewed investor confidence while raising expectations for sustainable economic growth.

Topics

South African-Founded Lupa Robotics Raises US$1.67 Million to Teach Robots Human-Like Dexterity

This is a strong technology magazine story because it covers robotics, artificial intelligence, South African innovation, startup funding and the future of automation. It also offers a different angle from the usual AI announcements and cybersecurity stories.

South Africa’s R10 Billion Bee-Pollination Economy Puts Farmers and Beekeepers in the Spotlight

South Africa's honeybee pollination industry contributes more than R10 billion annually to agriculture. Stronger partnerships between farmers and beekeepers are becoming essential for improving crop yields, protecting food security and supporting sustainable farming.

South Africa’s New Water Restrictions Put Western Cape Farmers and Citrus Exports Under Pressure

South Africa's new 15% irrigation water cuts put Western Cape farmers under pressure, raising concerns about citrus production, agricultural exports, food security and the urgent need for sustainable water management.

IDC Moves to Take Control of ArcelorMittal South Africa in R1.1 Billion Steel Industry Rescue Deal

South Africa’s steel industry faces a major turning point as the IDC moves to recapitalise ArcelorMittal South Africa, with potential consequences for construction, mining, manufacturing, jobs and the country’s industrial future and infrastructure investment.

S&P Upgrades South Africa’s Credit Rating as Improving Public Finances Boost Investor Confidence

South Africa moves closer to investment-grade status as S&P upgrades its sovereign credit ratings, highlighting improved public finances, stronger fiscal discipline and renewed investor confidence while raising expectations for sustainable economic growth.

EasyEquities Begins Phased Recovery Following Cyberattack as South Africa’s Digital Security Challenges Grow

EasyEquities has begun a controlled platform recovery after a cybersecurity incident, with Purple Group confirming client funds remain unaffected. The incident highlights why digital trust, data protection and cyber resilience matter for investors.

Musina Emerging Farmers Deliver 4,000 Tonnes of Tomatoes as Tiger Brands Strengthens Local Agricultural Supply Chains

Seventeen emerging farmers in Musina have supplied nearly 4,000 tonnes of tomatoes to Tiger Brands, demonstrating how agricultural investment, irrigation technology and market access can strengthen rural businesses and South Africa’s food supply chains.
spot_img

Related Articles

Popular Categories

spot_imgspot_img