On October 21, 2026, PHP maintainers disclosed two critical vulnerabilities that could allow unauthenticated remote code execution on affected servers. Tracked as CVE-2026-109618 and CVE-2026-109619, the flaws affect PHP itself, which runs behind websites and web applications around the world.
The vulnerabilities are only part of the story. OpenAI says AI assisted the security research, while PHP maintainers, researchers and security providers worked together to test fixes and prepare protections before disclosure. The episode offers a glimpse of how AI may help defenders find weaknesses and why discovery needs to be matched with coordinated remediation.
What is PHP2Shell?
PHP2Shell is the name used for research into these two critical vulnerabilities in PHP’s core runtime. Because the flaws are in PHP itself, a website may be at risk even if its application code does not contain a separate vulnerability.
PHP’s advisory describes two different problems:
- CVE-2026-109618, out-of-memory corruption: Memory exhaustion can interrupt request processing while internal data is only partly initialized. Later cleanup may treat that invalid data as valid.
- CVE-2026-109619, stale global state: Internal state belonging to one request can outlive the memory it refers to. A later request handled by the same worker may use that stale state before initialization resets it.
The PHP team says both vulnerabilities can enable unauthenticated remote code execution and rates each CVSS v4.0 9.2. Its advisory identifies web-facing installations, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed, as potentially at risk. It describes mod_php as the highest-risk configuration because a demonstrated exploit can reach the vulnerable code before application code runs. PHP’s security advisory
How did AI contribute to the discovery?
In its October 21 announcement, OpenAI said a security firm called Calif identified a critical flaw using GPT-5.6 Sol as part of the Patch the Planet initiative. OpenAI also said Wiz independently discovered and reported both vulnerabilities.
Researchers, PHP maintainers and security partners worked to investigate the flaws, test fixes and prepare protections before the details became public. AI contributed to the research. The broader discovery and remediation effort involved people and organizations coordinating across the software ecosystem. OpenAI’s account of the response
Finding a suspicious code pattern is only one step. Researchers must determine whether it is exploitable, understand its impact, and help maintainers develop and test a fix. AI-assisted tools can help explore complex code and possible attack paths, while researchers and maintainers evaluate the findings and make the changes needed to protect users.
Why does this discovery matter?
Vulnerabilities can exist below the application layer
Developers often focus on their own application code. But applications also depend on programming languages, libraries, operating systems and other components. A flaw in one of those foundations can put many otherwise unrelated applications at risk.
That is why security teams need to inventory the software they run and keep it updated, not just review the code they wrote themselves.
AI can help defenders find difficult vulnerabilities
Memory-handling flaws can be difficult to investigate because their effects depend on how software allocates, releases and reuses memory. AI can help researchers examine complex code and explore potential failure paths.
OpenAI said that, to its knowledge, frontier AI found these vulnerabilities before attackers did. That gave maintainers and security providers an opportunity to prepare fixes and protections before public disclosure.
Discovery needs to be matched by remediation
Finding a vulnerability does not automatically make systems safer. Maintainers need to develop and test fixes. Hosting providers need to prepare updates. Organizations need to locate affected systems and deploy the right package.
The PHP response shows why coordinated disclosure matters. Giving maintainers and defenders time to prepare can help turn a finding into protection while reducing unnecessary exposure.
What should website owners do?
PHP’s fixed upstream releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Linux distributions and long-term support vendors may provide patched packages with different version numbers, so check the relevant vendor advisory and package revision. PHP 8.1 and older no longer receive updates from the PHP project. Some vendors may provide backported fixes. PHP’s official advisory and release guidance
Administrators should:
- Check every PHP runtime, including those serving websites, running in containers, and used by managed hosting services.
- Apply the applicable PHP security release or vendor-provided update.
- Restart or reload services when required, then verify that the patched runtime is running.
- Review server and security logs for suspicious activity.
- Investigate possible compromise rather than assuming that installing an update removes an attacker’s existing access.
The version returned by php -v may not match the PHP-FPM pool or web server module handling live traffic. Confirm the runtime and package that actually serve requests. Temporary protections from hosting providers or security vendors may reduce exposure during an update, but they do not replace patching. Follow the full PHP advisory for current remediation instructions.
Defensive self-check: OpenAI’s PHP2Shell checker
OpenAI has also published the php2shell-checker repository on GitHub. Its README describes a Node.js tool for checking a local PHP binary or a website’s advertised PHP version against embedded branch cutoffs. It does not send exploit requests.
The repository’s direct commands are: node phpcheck.js "https://example.com" node phpcheck.js --local
The URL check reads version information from HTTP response headers. If the server hides its PHP version, the checker returns UNKNOWN. A local check reports the command-line PHP binary, which may differ from the runtime serving web traffic. Use the URL check only on sites you own or are authorized to assess.
Cutoff caveat: The checker’s server skill currently lists cutoffs from October 20, 2026, before PHP published the October 21 fixes. Until those cutoffs are updated, use the tool only as an initial inventory aid. Compare every result with the current PHP or vendor advisory. An OK result does not confirm that the October 21 fixes are installed. Header checks also cannot prove which package is installed or whether a vendor backport is present. Checker instructions and cutoff table
What could this mean for the future of cybersecurity?
PHP2Shell points to a future in which AI may help researchers identify weaknesses in widely used software more quickly. That creates an opportunity for defenders to find and fix vulnerabilities earlier, while also raising concern about attackers using similar capabilities to develop exploits faster.
Responding well requires more than capable tools. Researchers, software maintainers, hosting providers and security teams need a practical way to validate findings, prepare fixes, communicate guidance and help operators apply updates. OpenAI’s Patch the Planet initiative describes a coordinated approach that brings those groups together.
The broader lesson is that AI-assisted vulnerability discovery needs to be paired with responsible disclosure, reliable fixes and support for the organizations responsible for securing their systems.
Final thoughts
PHP2Shell is more than a critical vulnerability announcement. It shows how AI can contribute to research into widely used software and how collaboration across the cybersecurity community can help turn findings into protection.
For cybersecurity professionals, it is a reminder to look beyond individual applications and account for the software foundations they depend on. For website owners, the immediate steps are straightforward: check the PHP runtime serving your site, apply the appropriate security update, verify it is active and investigate any signs of compromise.


0 Comments