Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseAPI / Product · ActionableLatent Space (swyx)→ original

Two AI-Assisted Teams Found PHP2Shell Flaw in PHP Core: 70% of the Web Runs on It, Patch Took Two Months

Two teams independently found two flaws in the PHP core under the shared name PHP2Shell. According to a review cited by the article, PHP runs about 70% of websites. Ryan Austin of Calif used GPT-5.6 Sol, while Wiz used Gemini 4 Argon. The fix was prepared in secret for two months before publication. For that reason, the official PHP patch should be installed immediately, and WAF rules are only a temporary stopgap, not a replacement for the update.

AI-processed from Latent Space (swyx); edited by Hamidun News
Two AI-Assisted Teams Found PHP2Shell Flaw in PHP Core: 70% of the Web Runs on It, Patch Took Two Months
Source: Latent Space (swyx). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceLatent Space (swyx) ↗
Editor-in-Chief
Key metric #1Researchers showed unauthenticated exploitation in WordPress, Drupal, and Joomla.
Key metric #2Cloudflare enabled WAF rules even on its free tier, but described them as temporary.
Key metric #3OpenAI released a Codex skill that checks whether your site is affected.

Imagine a crack found in the foundation of a building where most of your neighbors live. Changing the locks on apartment doors is pointless, because the problem is not there. That is roughly what the PHP2Shell story looks like.

In October 2026, two vulnerabilities were disclosed in the PHP core itself. PHP is the language that, according to the author of a Latent Space review, runs about 70% of the web. They received the identifiers CVE-2026-109618 and CVE-2026-109619.

AI models found them, notably GPT-5.6 Sol from OpenAI. Work on the fix continued for about two months before public disclosure, which is the "two-month patch" from the headline.

For practitioners, the takeaway is simple: waiting for a plugin or CMS update will not work here. You need to update PHP itself.

Who Found the Flaw and How

Two parties made the discovery independently. The first is Ryan Austin, a researcher at the security firm Calif. He worked under OpenAI's Patch the Planet program and used GPT-5.6 Sol. Access to cyber tools, judging by participants' posts, came through Daybreak, a separate OpenAI initiative backed by a $1 billion subsidy. These are two different things: Patch the Planet focuses on fixing vulnerabilities, while Daybreak provides access to the models.

The second party is Wiz, recently acquired by Google Cloud. It used Gemini 4 Argon, GPT-5.6 Sol, and its own tool, Wiz Atlas. An account linked to Wiz attributes to Gemini the search for flaws, the construction of exploit chains, the creation of detectors, and the verification of patches. This means the story involves several participants, not the victory of a single vendor.

According to the researchers' description, the bug sits in the internal handling of situations where PHP runs out of memory, along with fatal errors. The researchers demonstrated unauthenticated remote code execution in WordPress, Drupal, and Joomla, as well as a Heartbleed-style memory leak affecting any PHP application. A caveat: these are the researchers' own results. It does not follow that every installation is equally and immediately vulnerable.

Two Months of Preparation and an Urgent Release

OpenAI describes roughly two months of coordinated work before disclosure. The patch required a substantial change to the PHP engine. Maintainers, researchers, security vendors, and governments that were briefed confidentially took part. One of the researchers confirms that they worked with the PHP Foundation to strengthen the patch. These are accounts from participants; there is no independent audit of the timeline.

Other players joined before the release. Cloudflare enabled WAF rules for known attack vectors in advance, including on its free tier. The company's CTO explicitly called them a temporary measure and urged people to install the patch by 14:00 UTC. Cloudflare has already seen the first attack attempts, but it does not specify how many of them succeeded. The NSA advised preparing for an immediate update, and, if the flaw cannot be closed quickly, shutting systems down.

Some information is less firmly confirmed. It is reported that details leaked before the release, that about 1.5 million servers (an estimate citing Censys) remained unpatched, and that websites in Europe and other countries were taken offline because of the incident. None of these claims is backed by a primary source in the material, so they should be treated as unverified. After the disclosure, OpenAI published a repository with a Codex skill that helps check whether your site is affected.

What to Do in Practice

For an operations team, a sensible sequence is:

  • Pull the official PHP and your distribution's security bulletins.
  • Compile a list of every PHP runtime: on shared hosting, in containers, in background workers, and in legacy applications.
  • Enable temporary protection, such as a WAF, while understanding its limits.
  • Install the fixed packages and confirm that the new processes are actually running.
  • Check for signs of compromise that predate the update.

A WAF can create a false sense of security. Cloudflare's statement is narrower than advice to "hide everything behind it": known vectors are closed, protection is being refined, and the patch remains mandatory. You should also verify that there are no bypass routes to the origin server.

What We Still Don't Know

The available material contains no direct bulletin from the PHP Foundation, no exact table of fixed versions, and no package identifiers. For that reason, a universal instruction to "update to version X" cannot be given here. There is also no confirmed data on exactly what leaked before the release.

For the industry, the takeaway is this: AI models are already finding critical flaws in foundational software, and this time defenders got a two-month head start. The review's author expects at least another year of similar discoveries, but considers it wrong to blame those who find them. A rising number of disclosures does not mean a rising number of successful breaches, but the load on administrators is definitely rising. If your PHP inventory and rapid rollout of updates are not in order, now is the time to fix them.

Story

Key Questions Answered

Who Found the Flaw and How?

Two parties made the discovery independently. The first is Ryan Austin, a researcher at the security firm Calif. He worked under OpenAI's Patch the Planet program and used GPT-5.6 Sol. Access to cyber tools, judging by participants' posts, came through Daybreak, a separate OpenAI initiative backed by a $1 billion subsidy. These are two different things: Patch the Planet focuses on fixing vulnerabilities, while Daybreak provides access to the models. The second party is Wiz, recently acquired by Google Cloud.

What are the key details on Two Months of Preparation and an Urgent Release?

OpenAI describes roughly two months of coordinated work before disclosure. The patch required a substantial change to the PHP engine. Maintainers, researchers, security vendors, and governments that were briefed confidentially took part. One of the researchers confirms that they worked with the PHP Foundation to strengthen the patch. These are accounts from participants; there is no independent audit of the timeline. Other players joined before the release.

What to Do in Practice?

For an operations team, a sensible sequence is: Pull the official PHP and your distribution's security bulletins. Compile a list of every PHP runtime: on shared hosting, in containers, in background workers, and in legacy applications. Enable temporary protection, such as a WAF, while understanding its limits. Install the fixed packages and confirm that the new processes are actually running. Check for signs of compromise that predate the update. A WAF can create a false sense of security.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

Free 2-Day Vibecoding & AI Agents Intensive

Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Two AI-Assisted Teams Found PHP2Shell Flaw in PHP Core: 70% of the Web Runs on It, Patch Took Two Months https://news.hamidun.com/en/news/17567/two-ai-assisted-teams-found-php2shell-flaw-in-php-core-70-of

What do you think?
Loading comments…