A global scramble to patch critical vulnerabilities in PHP, the programming language underpinning roughly 70% of websites, has left governments and companies racing to prevent widespread cyberattacks after emergency fixes were released on Wednesday.

The flaws, dubbed PHP2Shell and assigned CVE-2026-109618 and CVE-2026-109619, allow unauthenticated remote code execution, enabling attackers to steal data or seize control of servers without login credentials. OpenAI and cybersecurity firm Wiz said AI tools uncovered the bugs, which had evaded detection for over a decade due to their complexity .

Details of the vulnerabilities leaked prematurely on Tuesday, forcing the PHP Foundation to accelerate its disclosure timeline by 24 hours. A botched release by Chainguard, which published patched binary images early, further exposed the flaws to potential exploitation before most users could apply fixes .

Governments and corporations in the U.S., U.K., Finland, Japan, and beyond temporarily took websites offline, including the BBC and multiple Japanese agencies. SoftBank suspended its emergency alert system for mobile users, while Nomura, Mitsubishi UFJ Financial Group, and East Japan Railway paused online services . Cloudflare reported millions of hacking attempts within hours of the disclosure, with exploitation surging as attackers reverse-engineered the patches .

Patches cover only PHP versions 8.2 and newer, leaving older systems exposed. As of Thursday evening, fewer than 6% of visible PHP instances had been updated, though the rate was rising by roughly 7,000 per hour . The PHP Foundation acknowledged the flaws’ severity, noting they reside in core memory management and error-handling functions, making fixes difficult without breaking compatibility .

Japan’s industry minister, Ryosei Akazawa, said defenders must adopt an attacker’s mindset and use AI proactively to identify weaknesses. The country will establish a team to simulate AI-driven cyberattacks, reflecting broader concerns that AI lowers barriers for both defense and offense .