Flash Report: AI-Discovered PHP Vulnerability
by ZeroFox Intelligence
Scope Note
ZeroFox Intelligence is derived from a variety of sources, including—but not limited to—curated open-source accesses, vetted social media, proprietary data sources, and direct access to threat actors and groups through covert communication channels. Information relied upon to complete any report cannot always be independently verified. As such, ZeroFox applies rigorous analytic standards and tradecraft in accordance with best practices and includes caveat language and source citations to clearly identify the veracity of our Intelligence reporting and substantiate our assessments and recommendations. All sources used in this particular Intelligence product were identified prior to 7:00 AM (EDT) on October 22, 2026; per cyber hygiene best practices, caution is advised when clicking on any third-party links.
Key Findings
- On October 21, 2026, the PHP Foundation released emergency patches for two critical PHP core vulnerabilities, CVE-2026-109618 and CVE-2026-109619 (“PHP2Shell”), which allow unauthenticated remote code execution (RCE).
- Multiple parties reportedly independently discovered the flaws in August 2026 using frontier artificial intelligence (AI) models, which reportedly also reduced the effort required to build working exploits.
- ZeroFox has observed reporting of early exploitation attempts of both CVEs, urgent patching warnings from U.S. and European government agencies, and several government websites taken offline as a precaution.
- ZeroFox assesses that organizations running end-of-life PHP versions face the highest exposure risk, as no official patch is available for those versions at the time of writing.
- ZeroFox assesses with moderate confidence that exploitation of unpatched and end-of-life PHP deployments will almost certainly continue and expand in the coming weeks, and that this event will very likely accelerate AI-assisted vulnerability discovery and exploitation.
Overview
On October 21, 2026, the PHP Foundation released emergency patches for two critical vulnerabilities in the PHP core engine, CVE-2026-109618 and CVE-2026-109619 (“PHP2Shell”), which allow unauthenticated RCE on unpatched servers.1 The flaws were reportedly discovered with the assistance of frontier AI models, which also enabled the rapid development of working exploits.2 ZeroFox assesses with moderate confidence that exploitation of unpatched systems will almost certainly continue and expand over the coming weeks.
Details
PHP is an open-source, server-side scripting language first created in 1994 and maintained by the PHP Foundation.3 It is used by roughly 70 percent of websites—including the WordPress content management system, which reportedly powers around 40 percent of all websites.4 The two flaws are described as RCE through out-of-memory corruption (CVE-2026-109618) and RCE through stale global state (CVE-2026-109619), and both can be exploited without logging in.5
An AI red-teaming firm identified the first issue on August 1 using OpenAI’s GPT-5.6 Sol, and OpenAI’s own analysis then found additional elements of the flaw.6 A second cybersecurity firm reportedly found the vulnerabilities independently in August, after which the parties formed a coordinated disclosure effort with the PHP Foundation.7 OpenAI’s president stated that the root cause had been present for 14 years and that a limited version was identified in 2024 but was not considered significant at the time.8 Details reportedly surfaced publicly before the planned patch release, and PHP issued fixes in versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35.9 PHP 8.1 and earlier are end-of-life and have no official fixed release.10
Impact
ZeroFox has observed reporting of early exploitation attempts against unpatched systems from a major web infrastructure provider; however, the extent of exploitation is currently unclear. Successful exploitation would provide an attacker with an entry point into the hosting network and potential access to sensitive data. ZeroFox assesses that organizations running end-of-life PHP versions face the highest exposure risk, as no official patch is available for those versions at the time of writing.
- An initial industry analysis identified 22.6 million potentially vulnerable instances.11
- The National Security Agency (NSA) and the Federal Bureau of Investigation (FBI) Cyber Division urged affected organizations to update their current software, and the NSA advised taking systems offline where patching is not possible.12
- Agencies in the Netherlands and Finland reportedly took websites offline as a precaution, and the PHP Foundation described the flaws as among the most severe it has encountered.13
Outlook and Assessment
ZeroFox assesses with moderate confidence that mass exploitation of unpatched PHP servers will almost certainly continue through at least the coming weeks, driven by the pre-disclosure leak, the flaws’ pre-authentication reach, and the large population of unpatched and end-of-life deployments. Initial activity is likely to consist of opportunistic scanning, web shell deployment, and credential theft, with initial access sales and follow-on ransomware activity likely to follow. ZeroFox assesses it is very likely that PHP2Shell will remain a long-tail exposure, as legacy systems that cannot be patched will persist for months, and further related disclosures are likely given the scrutiny now directed at the PHP codebase.
More broadly, ZeroFox assesses it is very likely that PHP2Shell will accelerate the use of AI by both defenders and threat actors to find and weaponize flaws in long-established codebases. The reported reduction in effort required to turn a complex memory-corruption flaw into a working exploit is likely to shorten the window between disclosure and exploitation, which will place pressure on coordinated disclosure norms and patch cycles. There is a roughly even chance that another widely deployed open-source component will be publicly linked to AI-assisted vulnerability discovery within the next six months.
Recommendations
- Patch immediately. Update to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, and restart PHP services so the fixed code is loaded. Where PHP is supplied by an operating system or hosting vendor, confirm the vendor has shipped a patched package.
- Inventory all PHP exposure. Identify PHP in content management systems, container images, base images, and third-party applications, including instances that are not centrally managed. Rebuild and redeploy container images that bundle an affected version.
- Isolate what cannot be patched. Where patching is not immediately possible, remove the system from the internet or take it offline, in line with NSA guidance. Treat any vendor or web application firewall mitigations as interim controls only, as updating is the only complete fix.
- Retire end-of-life versions. PHP 8.1 and earlier reportedly have no official fixed release, and ZeroFox assesses these deployments carry the highest sustained risk. Prioritize migration to a supported version.
- Hunt for prior compromise. Review web server and application logs from at least October 20, when details reportedly surfaced ahead of the patch, for unusual multipart upload requests followed by memory errors or repeated HTTP 500 responses, unexplained PHP worker restarts, newly created web shells, unexpected administrator accounts, and unusual outbound connections.
- Rotate secrets where exposure is suspected. Because successful exploitation can expose sensitive data, rotate credentials, API keys, tokens, and session secrets on any internet-facing PHP server that was unpatched during the exposure window.
- Shorten patch timelines for internet-facing core components. ZeroFox assesses that AI-assisted exploit development will very likely reduce the time between disclosure and exploitation; organizations should plan for emergency patching of core runtimes within hours rather than days.
- hXXps://www.helpnetsecurity[.]com/2026/10/21/php2shell-php-vulnerabilities-patched-cve-2026-109618-cve-2026-109619/ ↩︎
- hXXps://fortune[.]com/2026/10/21/ai-tools-discovered-the-php-vulnerability-that-could-take-down-70-of-the-internet-now-the-race-is-on-to-patch-it-before-ai-powered-hackers-attack/ ↩︎
- hXXps://thephp[.]foundation/ ↩︎
- hXXps://fortune[.]com/2026/10/21/ai-tools-discovered-the-php-vulnerability-that-could-take-down-70-of-the-internet-now-the-race-is-on-to-patch-it-before-ai-powered-hackers-attack/ ↩︎
- hXXps://github[.]com/serversideup/docker-php/discussions/721 ↩︎
- hXXps://fortune[.]com/2026/10/21/ai-tools-discovered-the-php-vulnerability-that-could-take-down-70-of-the-internet-now-the-race-is-on-to-patch-it-before-ai-powered-hackers-attack/ ↩︎
- Ibid. ↩︎
- hXXps://mashable[.]com/tech/openai-takes-credit-for-finding-php-flaws ↩︎
- hXXps://github[.]com/serversideup/docker-php/discussions/721 ↩︎
- hXXps://laravel[.]com/forge/docs/knowledge-base/php-security-release-october-2026 ↩︎
- hXXps://fortune[.]com/2026/10/21/ai-tools-discovered-the-php-vulnerability-that-could-take-down-70-of-the-internet-now-the-race-is-on-to-patch-it-before-ai-powered-hackers-attack/ ↩︎
- hXXps://www.cnn[.]com/2026/10/21/tech/php2shell-vulnerability-ai ↩︎
- hXXps://www.aljazeera[.]com/news/2026/10/22/world-leaders-warn-against-security-flaw-found-in-php-computer-programming ↩︎
Tags: Threat Intelligence