Can AI Find Security Bugs? What PHP2Shell Shows About AI-Assisted Vulnerability Research

PHP2Shell, the October 2026 PHP flaw, was found with help from an AI model. What AI-assisted vulnerability research really looks like, its limits, and what to patch now.

Written by
Published on
October 25, 2026
Category
Explainer
Can AI Find Security Bugs? What PHP2Shell Shows About AI-Assisted Vulnerability Research

Introduction

On October 20, 2026, researchers disclosed PHP2Shell, a pair of critical use-after-free vulnerabilities in PHP tracked as CVE-2026-109618 and CVE-2026-109619. Both allow unauthenticated remote code execution and carry a CVSS score of 9.2. Patches landed the next day in PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. PHP 8.1 and older are end-of-life and will not receive a fix. The disclosure drew extra attention because an AI model, OpenAI's GPT-5.6 Sol, assisted Wiz and OpenAI researchers during the investigation.

The scale is hard to overstate. Palo Alto counted more than 22.6 million exposed servers, and PHP runs roughly 70% of websites. mod_php deployments are considered highest risk, and a proof-of-concept is already public. For defenders, the practical question is not whether AI can find bugs, but how AI changes the speed and shape of ai vulnerability research.

This guide explains what PHP2Shell actually shows about AI-assisted vulnerability research, where the limits are, and what teams should do next. The short version: the model helped, but humans found and confirmed the bugs. That distinction matters for anyone evaluating AI security tooling.

Key Concepts

AI-assisted vulnerability research: A workflow where AI models help humans review code, generate hypotheses, and prioritize suspicious patterns. The model accelerates analysis, but humans direct the investigation and validate every finding.

Use-after-free: A memory safety bug where a program keeps using a pointer after the memory it references has been freed. In PHP's case, the PHP2Shell flaws let unauthenticated attackers achieve remote code execution, which is why the CVSS score is 9.2.

Autonomous vs. assisted: Autonomous discovery implies an AI found and confirmed a bug without human help. Assisted means the model contributed to a human-led effort. PHP2Shell is firmly in the assisted category, and reporting that blurs the line is misleading.

Exposure surface: The number of internet-facing systems running vulnerable software. With PHP on roughly 70% of websites and 22.6 million exposed servers counted by Palo Alto, the exposure surface for PHP2Shell is enormous.

Deep Dive

What the AI actually did

OpenAI's GPT-5.6 Sol model assisted Wiz and OpenAI researchers during the PHP2Shell investigation. It did not find the bugs autonomously. Humans did the finding and confirmation. The model's role was supportive: helping researchers reason about code paths and prioritize where to look. That is a meaningful contribution, but it is not the same as an AI independently discovering a zero-day.

The flaw area had also been flagged in a 2024 Quarkslab audit, which suggests the vulnerability was not invisible to human review. AI helped accelerate an investigation that humans were already equipped to conduct. For teams evaluating models for security work, GPT-5.6 Sol is available via API access and is documented on AIPortalX.

Why AI-assisted research is gaining ground

Security research is expensive. Auditing a large codebase for memory safety issues takes time, and the search space is vast. AI models can read code, summarize behavior, and surface suspicious patterns faster than a human can triage manually. They are also tireless: a model can review thousands of functions without losing focus. That makes them useful for hypothesis generation, especially in languages like PHP where subtle lifetime bugs can hide in plain sight.

But speed is not the same as certainty. A model can point at a suspicious function without proving exploitability. It can also produce confident-sounding false positives. The PHP2Shell case worked because humans stayed in the loop, validating the model's suggestions against real code and real behavior.

The limits of the current approach

AI-assisted research still depends on human judgment at every critical step. Someone has to define the scope, interpret the model's output, and confirm that a suspected bug is real and exploitable. The model does not understand impact the way a researcher does. It also cannot replace the institutional knowledge that comes from prior audits, like the 2024 Quarkslab review that had already flagged the PHP2Shell area.

There is also a disclosure risk. If AI makes it cheaper to find bugs, it may also make it cheaper to find them maliciously. The public proof-of-concept for PHP2Shell shows how quickly a confirmed flaw becomes a widespread threat. Defenders need to patch faster than attackers can weaponize.

What PHP2Shell tells us about the future

Expect more disclosures where AI played a supporting role. The headline will sometimes imply the model found the bug, but the accurate framing is AI-assisted, not autonomous. Teams should read disclosures carefully and ask who confirmed the finding. That habit will matter as more vendors add AI to their security workflows.

Practical Application

If you want to explore AI-assisted code review, start with a model that can handle long context and structured reasoning. GPT-5.6 Sol is available through API access and supports language modeling, generation, and question answering. You can test prompts against real code snippets in the AIPortalX Playground before wiring anything into production.

For defenders dealing with PHP2Shell specifically, the priority is patching. Upgrade to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35. If you are on PHP 8.1 or older, you are end-of-life and need a migration plan, not just a patch. Review mod_php deployments first, since they are highest risk. Then use AI tooling to audit custom code for similar lifetime bugs, but keep a human reviewer on every finding.

Common Mistakes

Claiming AI discovered PHP2Shell autonomously. It did not. The model assisted; humans found and confirmed the bugs.

Treating AI output as a confirmed vulnerability. A model's suggestion is a lead, not a finding. Validation is still required.

Ignoring end-of-life PHP versions. PHP 8.1 and older get no fix for PHP2Shell, so staying on them is a standing risk.

Assuming patching is enough. With 22.6 million exposed servers and a public proof-of-concept, exposure review and monitoring matter too.

Overlooking mod_php deployments. They are the highest-risk configuration and should be prioritized in any remediation plan.

Next Steps

Patch first. Confirm your PHP version and upgrade to 8.5.12, 8.4.27, 8.3.36, or 8.2.35. If you are on 8.1 or older, start a migration plan immediately. Then inventory internet-facing PHP services, prioritizing mod_php deployments, and review logs for exploitation attempts.

After remediation, experiment with AI-assisted review in a controlled setting. Use the AIPortalX Playground to test how GPT-5.6 Sol handles code analysis prompts, and keep humans in the loop for every confirmed finding. The lesson from PHP2Shell is not that AI replaces researchers. It is that AI can make good researchers faster, provided everyone is honest about who did the finding.

Frequently Asked Questions

Last updated: October 25, 2026

Explore AI on AIPortalX

Discover and compare AI Models and AI tools.