AI Uncovers Critical PHP Vulnerability Affecting 70% of Websites as Hackers Exploit Flaw

Reviewed byNidhi Govil

69 Sources

Share

Researchers using AI discovered critical PHP vulnerabilities affecting an estimated 70% of websites worldwide. Amazon detected exploitation attempts four days before public disclosure, prompting emergency patches and government site shutdowns. The incident highlights AI's dual-use nature in cybersecurity—both finding and exploiting flaws.

AI Discovers Decade-Old PHP Vulnerability With Critical Impact

Researchers using advanced AI models uncovered critical security flaws in PHP, the open-source programming language that powers an estimated 70% of websites worldwide

1

4

. The PHP vulnerability, collectively dubbed PHP2Shell and tracked as CVE-2026-109618 and CVE-2026-109619, involves critical security flaws in how PHP manages computer memory and handles errors

5

. Both vulnerabilities received a critical severity score of 9.2 out of 10

5

.

Source: Market Screener

Source: Market Screener

Researchers from California-based cybersecurity firm Calif, working under OpenAI's "Patch the Planet" initiative, first identified the exploitable PHP vulnerability on August 11 using GPT-5.6 Sol

5

. OpenAI researchers independently discovered the same flaw that day, while Google-owned security firm Wiz identified an additional vulnerability

5

. OpenAI characterized this as "one of the most impactful security issues in recent memory," noting that frontier AI found these vulnerabilities before attackers did

1

.

Hackers Exploit Critical Security Flaw Before Public Disclosure

Amazon detected attempts to exploit the PHP vulnerability four days before the weakness was disclosed to the public, giving hackers a significant head start

1

. The world's largest cloud computing provider warned that the flaws were "now being broadly exploited in the wild"

1

. Cloudflare analysis revealed millions of exploitation attempts hit within hours of the vulnerabilities being published

3

.

The National Security Agency and UK's National Cyber Security Centre issued urgent warnings, with the NSA advising all organizations using PHP to immediately update their systems or take them offline

1

. Government websites in France, Denmark, Finland, and the Netherlands were taken offline as a precautionary measure

4

. The National Cyber Security Centre warned the vulnerabilities could potentially allow remote code execution, enabling hackers to take control of a website's server without needing passwords or login credentials

1

.

Source: PYMNTS

Source: PYMNTS

AI in Cybersecurity Reveals Two-Year-Old Flaw Human Developers Missed

The PHP Foundation had known about the underlying flaw since 2024 but couldn't identify an exploitation method or fix

5

. The issues were deemed too complex to exploit at the time

3

. Human developers and security teams examined the underlying code but couldn't fully resolve the flaws, allowing them to persist for two years after discovery

5

. Meanwhile, AI-assisted researchers demonstrated practical ways to exploit it within two weeks

5

.

According to University of Surrey researcher Alan Woodward, the flaw requires millisecond timing to exploit—previously thought impractical for human hackers. "The reason it was thought to be too complicated was it would have taken a team of people yonks to actually work out the right timings. But what AI does, it doesn't go for tea breaks, it doesn't go home at six o'clock: you can just set loads of them running and eventually they'll come up with the right answer," Woodward explained

4

. Wiz researcher Sagi Tzadik noted, "The vulnerability had been known to the PHP team for years, but because it could not be leveraged by an attacker—at least, not a human one—it was not addressed"

3

.

Memory Handling Errors Enable Remote Code Execution

The two vulnerabilities involve flaws in how PHP manages computer memory and handles errors

5

. The first occurs when PHP runs out of allocated memory while processing a request, potentially leaving behind incomplete internal data that the engine may later mistakenly treat as valid

4

. The second involves a related problem where a fatal error leaves PHP pointing to memory that has already been freed, allowing subsequent requests to access or corrupt it

4

.

Source: AIM

Source: AIM

Under certain conditions, attackers can exploit these weaknesses remotely to execute malicious code on affected servers, potentially taking control of websites

5

. Using large language models, researchers demonstrated that the flaws could expose sensitive information stored in server memory, including passwords, authentication tokens, and API keys

5

. The vulnerabilities exist in PHP's core engine, meaning websites can be affected even if their application code has no security flaws

5

.

Patching Efforts and Long-Term Concerns About Internet Infrastructure

The PHP Foundation released patched versions PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12 to fix the vulnerabilities

5

. PHP 8.1 and older versions will not receive official fixes

5

. The coordinated release was originally scheduled for October 22 but was brought forward to October 21 following premature disclosures on October 20

5

.

PHP's wide presence stems largely from WordPress, the most widely used website-building platform, which is written primarily in PHP

1

. The incident sparked concerns about the rickety infrastructure of the internet, with experts noting how much of the web's foundation relies on open-source technology maintained by small teams

2

. Some organizations took websites offline entirely rather than patch them, raising concerns about link rot and the permanent loss of historical web content

2

.

Defender's Window Concept and AI's Dual-Use Nature

OpenAI introduced the concept of the Defender's Window following this incident—a critical, narrow timeframe during which organizations can use advanced frontier AI models to find, patch, and strengthen cybersecurity defenses before those same AI-driven attack capabilities become widely available to malicious threat actors

5

. The company emphasized that "frontier AI can uncover security flaws with internet-scale impact, but the same capabilities can also help attackers rapidly develop offensive tools and exploits"

1

.

This dual-use nature of AI in cybersecurity has prompted warnings from politicians and financial regulators. The release of new models earlier this year from Anthropic and OpenAI with powerful cyber capabilities led the US government to temporarily limit their rollout

1

. Anthropic's Claude Mythos recently identified thousands of zero-day vulnerabilities in every major operating system and web browser

5

. Security researchers note that while AI makes bugs more exploitable, most sophisticated AI-assisted hacking still involves human expertise, with Calif researcher Ryan Austin writing, "No model is simply capable of unearthing 'all bugs' with simple prompts. At least for now"

3

.

© 2026 TheOutpost.AI All rights reserved