PHP2Shell is the name given to two critical bugs in PHP itself, tracked as CVE-2026-109618 and CVE-2026-109619, both rated 9.2 (Critical) under CVSS v4.0. Both allow unauthenticated remote code execution, and both can also disclose memory contents such as passwords, tokens and API keys. Because the flaw sits in PHP core rather than in any particular application, the exposure is unusually broad - Wiz, the security research firm that found the bugs, estimates PHP powers around 70% of the web.
The two CVEs are distinct bugs with a similar end result. CVE-2026-109618 is a use-after-free that Wiz describes as sitting in the upload-progress unserializer, triggered when out-of-memory handling interrupts PHP mid-request. CVE-2026-109619 is a separate use-after-free that Wiz traces to fatal-error backtrace handling, where stale internal state survives after its memory is freed. A public proof-of-concept exists for the underlying flaw, and early exploitation attempts have been reported by watchTowr, Cloudflare and VulnCheck.
Every PHP installation that serves web requests is potentially affected, across SAPIs including Apache mod_php (the highest risk, since code can execute before application logic even runs), PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. The bug is believed to go back roughly a decade, to around PHP 5.4. Because the flaw is application-agnostic, a WordPress, Drupal or Joomla site is exactly as exposed as a plain PHP page - see our dedicated WordPress PHP2Shell fix guidance if that's your platform.
The timeline moved fast. Wiz Research found the bugs on 19 August 2026 and reported them to the PHP security team on 24 August. Separately, researcher Ryan Austin at security firm Calif found a version of the flaw using OpenAI's GPT-5.6 Sol as part of OpenAI's "Patch the Planet" programme, with OpenAI finding a more complete version in September - both discoveries used AI models. The PHP security team gave advance notice of a 21 October 14:00 UTC release, but details leaked on a forum, forcing disclosure early. We covered the initial disclosure in our news piece on the critical PHP RCE vulnerability, and the fixed versions, EOL options and AI discovery story in our follow-up news piece.