Image of PHP2Shell

PHP2Shell

Event

Two critical 9.2-severity exploits in PHP discovered via persistent AI compute that leaked early in October 2026, triggering global website shutdowns and millions of hacking attempts.


First Mentioned

10/24/2026, 5:09:53 AM

Last Updated

10/24/2026, 5:10:51 AM

Research Retrieved

10/24/2026, 5:10:51 AM

Summary

PHP2Shell refers to a major cybersecurity event and vulnerability family discovered in core PHP, a programming language that powers roughly 70% of the web. Consisting of two critical memory-handling flaws tracked as CVE-2026-109618 and CVE-2026-109619 with a CVSS severity score of 9.2, the vulnerabilities allow unauthenticated attackers to achieve remote code execution and expose process memory. The exploits were uncovered by security researchers employing persistent AI compute from frontier research teams, including OpenAI and Anthropic. A premature leak of the vulnerability details ahead of coordinated patching led to millions of exploitation attempts observed by cloud providers like AWS and Cloudflare, prompting systems such as Wikipedia and several European government websites to temporarily take services offline. Companies such as Palo Alto Networks and Cloudflare responded by deploying virtual perimeter patches while organizations tested their defenses using advanced AI models such as Anthropic's Mythos.

Research Data
Extracted Attributes
  • Wikidata ID

    Q141801185

  • CVE Identifiers

    CVE-2026-109618, CVE-2026-109619

  • Discovery Method

    Persistent AI compute / AI red-teaming

  • Patched Versions

    PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12

  • Affected Software

    PHP (core)

  • Vulnerability Type

    Memory safety flaws (unauthenticated remote code execution and process memory disclosure)

  • CVSS Severity Score

    9.2

  • Estimated Web Footprint Affected

    Approximately 70% of websites

Timeline
  • The PHP project officially releases patched versions (8.2.35, 8.3.36, 8.4.27, and 8.5.12) to address the PHP2Shell flaws after details leak ahead of schedule. (Source: https://www.upguard.com/blog/php2shell-a-clear-explanation-and-response-framework)

    2026-10-21

  • Technical analyses and advisories are widely published as organizations review logs for exploitation attempts and deploy virtual perimeter patches. (Source: https://logz.io/blog/security/php2shell-php-vulnerability)

    2026-10-22

PHP

PHP is a general-purpose scripting language geared toward web development. It was created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. PHP was originally an abbreviation of "Personal Home Page", but it now stands for the recursive backronym "PHP: Hypertext Preprocessor". PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon, or a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code—which may be any type of data, such as generated HTML or binary image data—can form the whole or part of an HTTP response. Various web template systems, web content management systems, and web frameworks can be employed to orchestrate or facilitate the generation of that response. PHP can be used for programming tasks outside the web context, though such use is rare. PHP code can also be directly executed from the command line. The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers across various operating systems and platforms.

Web Search Results
  • PHP2Shell — AI uncovers critical vulnerabilities in the backbone of the web

    Review upgrade guidance ## What is PHP2Shell? PHP2Shell is a family of memory-safety vulnerabilities in core PHP. It comprises two related vulnerability classes, tracked as two CVEs: corruption caused by out-of-memory handling, and stale global state that survives across requests. The vulnerable code is in PHP itself. Websites can be affected even when their application code is secure, including a simple "Hello World" application running on an affected PHP version. Sites running the latest patched PHP releases are protected. The PHP team responded to these reports with exceptional speed and professionalism, working closely with researchers to deliver comprehensive fixes. [...] PHP2Shell × # PHP2Shell ## AI uncovers critical vulnerabilities in the backbone of the web PHP2Shell is a family of critical vulnerabilities recently fixed in core PHP, with severity reaching CVSS 9.2, that can allow unauthenticated attackers to execute code or expose sensitive process memory. PHP powers approximately 70% of websites, including platforms such as WordPress, Drupal and Wikipedia's MediaWiki. Research and responsible disclosure:Wiz Research — Sagi Tzadik, Shir Tamari, Nir Ohfeld and Tomer Schwartz;OpenAI Codex Security — Amy Burnett;Calif — Ryan A. Review upgrade guidance ## What is PHP2Shell? [...] These signals can help guide an investigation, but they do not establish exploitation on their own. Their absence does not establish that a system is unaffected. Some attacks can disclose sensitive memory without executing malicious code on the server, and application logs may contain little context because the vulnerable paths run below the application layer. Apply the PHP security update regardless of whether suspicious activity has been observed. php2shell is the name we gave the combined exploit script used to demonstrate unauthenticated remote code execution on WordPress, Drupal and Joomla. PHP2Shell also names the broader research into these core PHP vulnerabilities.

  • PHP2Shell explained in 10 minutes (A technical analysis)

    # PHP2Shell explained in 10 minutes (A technical analysis) 34 likes ### Description 1,004 views Posted: 2026-10-22 PHP2Shell is a pair of critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can let an unauthenticated attacker read process memory or achieve remote code execution. The flaws are inside PHP itself and affect deployments using PHP-FPM, Apache mod_php and popular applications such as WordPress, Drupal and Joomla.

  • PHP2Shell: A Clear Explanation and Response Framework | UpGuard

    ## What is PHP2Shell? PHP2Shell is the name for two related vulnerabilities in the core of PHP. Both sit in memory management and error handling, parts of PHP that nearly every web request touches. That's why they're serious, and it's also why they were hard to fix without breaking compatibility or hurting performance. ### PHP2Shell at a glance: [...] On October 21, 2026, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical vulnerabilities, known as PHP2Shell. Both can let an unauthenticated attacker run code on servers running PHP. The disclosure was also disrupted. According to the PHP Foundation, the vulnerability IDs leaked ahead of the release and patched builds appeared hours before the coordinated release, giving attackers a head start on exploitation (though no confirmed exploitation has been reported). If you run PHP, update now. The PHP project says configuration changes can reduce exposure, but only an update fully fixes the problem. ## What is PHP2Shell? [...] We chose version-based detection because the PHP project says updating is the only reliable fix, and interim mitigations can’t be reliably observed from outside a server. Security teams can see where their organization and their vendors are potentially exposed, and prioritize patching and remediation requests. ## Don't delay, respond now PHP2Shell combines unauthenticated remote code execution, a version range that includes end-of-life releases with no easy fix, and a disclosure that gave attackers a head start. There's no confirmed exploitation in the wild yet, but proof-of-concept code is already public, and that window may not stay open for long.

  • PHP2Shell: Critical PHP Vulnerabilities Explained | Logz.io

    ## What happened with PHP2Shell? PHP2Shell is a pair of memory-handling bugs in the PHP engine itself, so it affects applications regardless of how well their own code is written. The first, CVE-2026-109618, sits in how PHP handles a request that runs out of memory. PHP abandons the request mid-flight, and in certain contexts its cleanup routine then reads memory that was never properly initialized. An attacker who can shape that memory can steer what the cleanup code does next. The second, CVE-2026-109619, is triggered by fatal errors. After one occurs, PHP can keep pointers to memory that was already freed at the end of the request. The next request handled by the same worker then reads that stale state. [...] If you want to see how this would look in your environment, book a demo or start a free 14-day trial. You can also review Logz.io pricing to see how consumption-based plans fit your log volume. Assess cost controls alongside data recovery, investigation workflows, and governance. The lowest possible ingestion volume can impair operations if it removes critical evidence. ## FAQs PHP2Shell is the name for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, disclosed in October 2026. They let an unauthenticated attacker run code on a vulnerable PHP web server. PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Versions 7.4 through 8.1 have source backports that some distributions ship as patched packages, and older versions have no official fix. [...] By: David Lotan Bolotnikoff October 22, 2026 TL;DR On October 21, 2026, PHP released emergency patches for two critical flaws known together as PHP2Shell (CVE-2026-109618 and CVE-2026-109619). An attacker with no credentials can use them to run code on a PHP web server, in some cases with a single HTTP request. Upgrade to PHP 8.2.35, 8.3.36, 8.4.27 or 8.5.12 now. Then go through your logs, because exploitation attempts were recorded before the patch shipped. In this post: what happened, why PHP matters to more teams than you might expect, who found the bugs, why the disclosure has been messy, what to check in your environment, and how Logz.io helps you catch this kind of attack early. Schedule a demo and we’ll show you how it’s done. Book a demo →

  • PHP2Shell Explained (2026)

    # PHP2Shell Explained (2026) ## Channel: NextWork 71.9K subscribers 152 likes ### Description 7,587 views Posted: 2026-10-21 Best place to learn through hands on projects 👉 PHP2Shell is two critical bugs in PHP, patched on 21 October 2026. PHP runs about 70% of websites with a known server language. With the right setup, an attacker could run their own code on a PHP server with no password. That is remote code execution. In this video I explain how PHP handles a request, the 128 MB memory limit, and how longjmp leaves a job half finished. Then bug one, bug two, why nobody caught it for years, how AI found it, and the PHP security fix. At the end, three things to do if your website runs on PHP. [...] The free project builds PHP Patch Check, a safe local lab that checks if a PHP server is patched and proves the fix. As you go, it builds a portfolio page of your work that you can share. The prompt from the video: Paste it into the Create box on NextWork, or into Claude, ChatGPT or any coding agent. I want to build a portfolio project about PHP2Shell, the two critical PHP bugs patched on 21 October 2026 (CVE-2026-109618 and CVE-2026-109619). I'm a beginner, so explain each step before we do it and wait for me to confirm it worked. The project is called "PHP Patch Check". It's a defensive project: it finds out whether a PHP server is patched, fixes it, and proves the fix. Do not write any exploit code or attack payloads. Everything runs on my own machine only. Build it in 4 parts: [...] ### Transcript [0:00] The internet is freaking out this week because of a bug called PHP2Shell. Which means that if your website runs on PHP, which is 70% of the internet, someone [0:08] could run their code on your server, read your database, and change your pages. And they don't need a password. [0:13] They just need a few requests, the same kind that a visitor sends. There was a lot of websites that were affected, including Wikipedia, 4chan, and even actually some governments took down [0:22] their web pages, including France, Germany, and Canada. So, it's really serious. But let's take a look at what actually happened first. First, you need to understand what PHP is. When you go