# PHP2Shell Vulnerability: How AI Helped Find the Flaws

- URL: https://superintelligence-news.com/articles/php2shell-vulnerability-ai-found-flaws-force
- Publisher: Superintelligence News
- Section: Safety & Alignment
- Type: analysis
- Author: Umair
- Published: 2026-10-25
- In this story: [OpenAI](https://superintelligence-news.com/companies/openai)

**In plain English:** The bugs are in PHP itself, so a site's own code can be sound and its server still be at risk.

> PHP2Shell brought together researchers using AI to find flaws and providers preparing defenses before disclosure. Reports of millions of attack attempts do not establish how many servers, if any, were breached.

## The brief

- **What happened:** PHP's maintainers led the fixes and release, while OpenAI and other partners supplied research, testing and coordination, OpenAI said.
- **Why it matters:** Wiz says AI reduced the time and skill needed to turn complex, old bugs into working attacks.
- **What happens next:** OpenAI is seeking feedback from the security community on its proposed process for disclosing serious software flaws.

## Key facts

- In its October 21, 2026, account, the PHP Foundation said its team had published 15 CVE records, public IDs for known flaws, since July 1, 2026.
- The PHP Foundation's October 21, 2026, post said staff had checked more than 100 reports that proved invalid, repeated other reports or could not be reproduced.
- The PHP Foundation said on October 21, 2026, that AI helps staff check and group reports, but people decide each case and work on every fix.
- The Next Web reported on October 23, 2026, that Cloudflare's firewall rules covered all customers, including free plans, before public disclosure.

PHP maintainers released fixes for the PHP2Shell vulnerability on October 21, 2026, after a leak prompted an earlier release. Calif and Wiz used AI to help find the flaws, which could let attackers run code on servers without logging in.

## What happened with the PHP2Shell flaws?

PHP2Shell covers two flaws in PHP, a language used to run websites. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) lists them as CVE-2026-109618 and CVE-2026-109619. The faults are in PHP's core engine. Wiz says affected versions reach back to PHP 5.4.

**Remote code execution** means an attacker can make a server run code from afar. A **patch** is an update that repairs a software bug. Wiz traced these faults to how PHP handles errors when it runs out of memory.

PHP's team had seen the underlying problem in 2024, the PHP Foundation said. At that point, no clear route to running an attacker's code had been found. Possible fixes carried trade-offs: some could break older software or create new risks.

The Foundation blamed the long delay on how the team made decisions and on a lack of staff. It said work had stopped and restarted as a small group struggled to agree on a fix.

On October 20, 2026, around 15:00 UTC, the two flaw IDs began to spread online. The Foundation said no technical details leaked at that stage. PHP then shifted its release from October 22 to October 21, 2026, keeping the 14:00 UTC time.

The Foundation said Calif mistakenly posted a video showing a working attack after the leak. The video was deleted, but copies spread. According to the Foundation, it helped others build test attacks faster.


## How did AI help find the PHP vulnerabilities?

Calif and Wiz describe separate searches that used AI to find the PHP bugs. [OpenAI](/companies/openai) says Calif found one flaw with GPT-5.6 Sol under its Patch the Planet program. Wiz says its work used Wiz Atlas, Google's Gemini 4 Argon and GPT-5.6 Sol. OpenAI says Wiz independently found both flaws.

Calif dates its discovery of several ways to run code to August 1, 2026. The Foundation says Calif researcher Ryan A reported a flaw on August 11, 2026. Wiz's timeline puts its first discovery on August 19, 2026, and its report on August 24, 2026.

According to Wiz, Gemini 4 Argon helped find the bug, build test attacks, spot attacks and check the fix. Wiz said AI let it adapt working attacks for several apps in hours. It estimated that one researcher did in a week what a top team would once have needed months to do.

In Wiz's October 21, 2026, blog post, [Google DeepMind](/companies/google-deepmind) head of Gemini Security Raluca Ada Popa said Argon helped defenders find and fix bugs. CyberScoop described Wiz as a firm Google had bought.

Calif said its first bug search used neither a special tool setup nor models closed to the public. It said knowledge of PHP's bug history shaped the search. Simple prompts do not make a model find every bug, it added.

## Are the PHP2Shell flaws being exploited?

Cloudflare reported millions of attempts to use PHP2Shell, not millions of confirmed break-ins. CISA's alert said the agency had not seen successful attacks using the flaws at the time it was published. That describes what CISA had observed; it does not establish that no server was breached.

Cloudflare chief executive Matthew Prince shared his counts on X by October 22, 2026. He reported thousands of attempts in the 10 hours before disclosure. The count rose to tens of thousands within 45 minutes after the announcement, hundreds of thousands within two hours and then millions.

Datafloq reported that Amazon Threat Intelligence's MadPot system logged an attempt dated October 17, 2026, four days before disclosure. Amazon did not know how the actor had obtained the exploit details, the report said.

OpenAI's October 21, 2026, post said AI had found the bugs before attackers, to the company's knowledge. The reported October 17 attempt predates public disclosure, not the researchers' August findings.

Axios reported on October 22, 2026, that many organizations had contained the risk and avoided major harm. Reuters, cited by The Next Web, said Mitsubishi UFJ Financial Group paused some online services in Japan as a precaution.

## Why is it called Black October?

Black October is a nickname for a wider run of cyber incidents, not another name for PHP2Shell. Axios used it for attacks and disruptions that went beyond the PHP flaws. The report linked the label to the volume of incidents and the risks they posed.

OpenAI expects more findings like the PHP bugs in the months ahead. It warned that tools which help find faults can also speed up the work of turning them into attacks. Wiz compared PHP2Shell with Heartbleed in 2014 and Log4Shell in 2021, calling it a possible turning point for AI.

[Anthropic](/companies/anthropic) deputy chief information security officer Jason Clinton warned on X on October 22, 2026, that conditions would worsen before they improved, Business Insider reported. He urged security leaders to seek help from their boards for basic defenses.

Box chief executive Aaron Levie pointed to a role for AI in defense. He said on X that the tools could speed up defensive work and help test risks, according to Business Insider.

Sriram Krishnan, a venture capitalist and former senior AI policy advisor for President [Donald Trump](/people/donald-trump), focused on the response. The software supply chain needed to get better at building and deploying fixes quickly, he wrote on X, Business Insider reported.

## Which PHP versions fix the flaws, and what comes next?

CISA urges sites to install PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 for the two original flaws. OpenAI has also proposed a five-stage process for handling serious bugs in widely used software. Its plan covers checking findings, preparing fixes and giving affected groups time to act.

For systems that cannot yet be updated, CISA recommends going offline until a fix or upgrade is in place.

AI Weekly reported that OpenAI's plan involves CISA, the Office of the National Cyber Director and the [White House AI task force](/articles/super-intelligence-force) before public disclosure. That group's name uses "Super Intelligence" (SI), the US [government's new name for AI](/articles/trump-rename-ai-super-intelligence). The report said the proposal shortens timelines if a flaw leaks or attackers start using it.

A later finding is separate from those two fixes. Cloudflare said PHP issued an informational advisory on October 23, 2026, for CVE-2026-115560 in its session upload progress feature. It affects even fully patched releases, including PHP 8.5.12, Cloudflare said. The company said a fix would come in PHP's next regular release.

## Frequently asked questions

### Which PHP server setups does CISA list?

CISA's alert names Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. It notes that PHP considers Apache with mod_php the highest-risk setup.

### What if a site runs PHP older than 8.2?

Those releases no longer receive official fixes, The Next Web reported. Users may need a patch from their software vendor or hosting provider.

### Can a firewall replace a PHP update?

No. CISA describes web application firewalls as a stopgap that may block some attacks, not a substitute for a fixed PHP release.

### Was PHP2Shell given a severity score of 10.0?

The PHP Foundation said 10.0 was an incorrect score that circulated with the leaked flaw IDs. It gave the actual score as 9.2.

## Sources

- [Patch the Planet: global response coordination as agents uncover critical vulnerabilities](https://openai.com/index/coordinated-disclosure-of-critical-vulnerabilities/)
- [PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet](https://www.wiz.io/blog/php2shell-php-rce)
- [Today's PHP Security Release, and How We're Strengthening PHP Security](https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/)
- [php2shell by Calif Research](https://calif.io/php2shell/)
- [Critical Vulnerabilities in PHP Require Immediate Patching](https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching)
- [Cloudflare deploys protections against php2shell vulnerability](https://blog.cloudflare.com/php-vulnerabilities-waf-protection/)
- [Cloudflare sees millions of attempts to exploit critical PHP flaws](https://thenextweb.com/news/cloudflare-php2shell-millions-exploit-attempts)
- [Black October: why bugs discovered by OpenAI tech are creating a cyber emergency](https://www.axios.com/2026/10/22/php-vulnerability-security-update-websites)
- [What smart people are saying about the 'vulnerability tsunami' AI unleashed](https://tech.yahoo.com/cybersecurity/articles/smart-people-saying-cybersecurity-vulnerability-065309497.html)
- [PHP releases emergency fixes for 2 critical vulnerabilities](https://cyberscoop.com/php-emergency-patches-php2shell-vulnerabilities/)
- [Cloudflare Deployed php2shell Protection Hours Before Disclosure](https://datafloq.com/cloudflare-deployed-php2shell-protection-hours-before-disclosure-heres-what-the-head-start-doesnt-cover/)
- [OpenAI Proposes Five-Stage Disclosure Plan After PHP Flaws](https://aiweekly.co/alerts/openai-proposes-five-stage-disclosure-plan-after-php-flaws)
