PHP2Shell: AI-assisted researchers find critical PHP flaws, Dutch sites go offline
Wes Roth walks through the PHP2Shell vulnerabilities, found with help from OpenAI and Google models, and the precautionary shutdowns that followed. He also offers practical advice for staying safe while sites patch.
In a video published on October 21, 2026, YouTuber Wes Roth reports on PHP2Shell, a pair of critical flaws in PHP, the language behind an estimated 70% of websites. Researchers found them with help from OpenAI and Google models. Roth says government sites, including many in the Netherlands, were taken offline as a precaution, and he urges viewers to be careful online for the next few days. He stresses he is not a security expert and that events were unfolding about three hours after the news broke.
What PHP2Shell allows and who is going offline
Roth cites a warning attributed to the NSA that organisations using PHP should prepare for an update covering two critical vulnerabilities. Under the right conditions, he explains, an attacker can run code on a server without logging in, and that can give a direct path to the file system or database. WordPress, which runs on PHP, is the obvious worry. The warning reportedly recommended taking systems offline until they are fully mitigated, and he says a number of EU governments have done so.
The larger risk, he argues, is the unmaintained web: sites that hold private data but have nobody ready to apply the patch. He says Cloudflare is already seeing early attacks, and that the details may have leaked ahead of disclosure, though he could not verify that.

How AI found the bug: OpenAI and Gemini models
The finding came from the security firm Calif, working under OpenAI's Patch the Planet initiative, which aims to fix critical flaws before attackers can exploit them. Calif joined on July 30, 2026. Roth says the team used an OpenAI model and Google's Gemini models, and targeted how PHP behaves when it runs out of memory and must clean up. That produced an interruption point they chained into remote code execution against WordPress.
One researcher then asked the model to turn the method into a reusable skill file, a set of instructions for hunting similar bugs, which improved with each discovery. Roth compares this to Andrej Karpathy's loop-style auto research project.
The timeline he gives: first vulnerability found August 19, WordPress compromised within 48 hours, a report to the PHP security team, and public disclosure October 21. He contrasts this with a 2024 audit that lasted 57 days without finding it, and calls claims that AI adds nothing new "nonsense."

Weak keys and who is most exposed
Roth also discusses a separate incident involving the Indian certificate provider eMudhra, citing a post by Pash. A private key should be a number about 116 digits long, but one was reportedly just the number four, and the certificates may have been compromised for around 18 months. He says hackers also used Claude, Grok and Kimi to automate attacks on 400 banks.
His judgement is that mid-sized businesses outside the circle of companies with access to advanced AI security tools, such as those in Project Glasswing, are most exposed. He adds that rumours from Anthropic suggest more is coming.
Practical steps for businesses and users
- Run anti-malware on every device, phones included, and keep browsers and operating systems updated.
- Use multifactor authentication and a unique password for every account.
- Turn on ad blocking, and be wary of links in texts and emails.
- If you run a website, update PHP and confirm the fix is actually running.
Roth adds that data already entered on neglected sites may be lost, so now is a good time to change passwords.
Questions and answers
What is PHP2Shell, the PHP vulnerability reported in October 2026?
PHP2Shell is a pair of critical flaws in PHP, the language behind an estimated 70% of websites. YouTuber Wes Roth reported on it in a video published on October 21, 2026. Under the right conditions, an attacker can run code on a server without logging in.
Why did Dutch government websites go offline over PHP2Shell in 2026?
Government sites, including many in the Netherlands, were taken offline as a precaution while the PHP2Shell flaws await full mitigation. Wes Roth cites a warning attributed to the NSA that recommended taking systems offline until fully mitigated, and says a number of EU governments have done so.
How did AI help find the PHP2Shell flaws?
Security firm Calif found the flaws using an OpenAI model and Google's Gemini models. The team targeted how PHP behaves when it runs out of memory and must clean up, which created an interruption point they chained into remote code execution against WordPress.
What is OpenAI's Patch the Planet initiative and how is Calif involved?
Patch the Planet is an OpenAI initiative that aims to fix critical software flaws before attackers can exploit them. The security firm Calif joined it on July 30, 2026, and found the PHP2Shell vulnerabilities while working under the programme.
What is the timeline of the PHP2Shell discovery and disclosure?
Calif found the first vulnerability on August 19, 2026, and compromised WordPress within 48 hours. The team then reported it to the PHP security team, and public disclosure came on October 21, 2026. Wes Roth contrasts this with a 2024 audit that ran 57 days without finding it.
What should businesses do about the PHP2Shell vulnerabilities?
Businesses running websites should update PHP and confirm the fix is actually running. Wes Roth also advises running anti-malware on every device, keeping browsers and operating systems updated, using multifactor authentication and unique passwords, enabling ad blocking, and being wary of links in texts and emails.
From the YouTube description
AI helped uncover something dangerous in the software behind a huge part of the internet. Government websites went offline as a precaution while defenders raced to respond. Here's how OpenAI and Google's models helped researchers uncover PHP2Shell, why finding the flaws was only the beginning, and what you can do to protect yourself.
______________________________________________
My Links 🔗
➡️ Twitter: https://x.com/WesRothMoney
➡️ AI Newsletter: https://natural20.beehiiv.com/subscribe
Want to work with me?
Brand, sponsorship & business inquiries: wesroth@smoothmedia.co
______________________________________________
SOURCES:
Dutch government: precautionary website shutdowns:
https://www.rijksoverheid.nl/actueel/nieuws/2026/10/21/aantal-websites-rijksoverheid-preventief-offline-na-kwetsbaarheden-php
PHP: official security advisory and updates:
https://www.php.net/archive/2026.php#2026-10-21-5
Calif: the original PHP2Shell research:
https://calif.io/php2shell/
Wiz: how AI helped uncover the vulnerabilities:
https://www.wiz.io/blog/php2shell-php-rce
OpenAI: Patch the Planet and the coordinated response:
https://openai.com/index/coordinated-disclosure-of-critical-vulnerabilities/
Cloudflare: protections against PHP2Shell:
https://blog.cloudflare.com/php-vulnerabilities-waf-protection
NCSC: practical steps for staying secure online:
https://www.ncsc.gov.uk/collection/top-tips-for-staying-secure-online
#ai #cybersecurity #php2shell
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.



