Key points
- CVE-2026-109618 and CVE-2026-109619 (CVSS 9.2) allow code execution without login, potentially on every version from PHP 5 onwards.
- Fixed releases: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35; source backports exist for 7.4 to 8.1.
- The BSI expects mass attacks within hours, and Amazon saw an attempt four days before disclosure.
- All PAN-OS and Panorama versions are affected, and fixed releases were not yet available on 22 October.
- Take systems that cannot be patched offline, and check hosting and embedded installations.
On 21 October the PHP project released emergency updates for two vulnerabilities. Wiz, whose researchers found them, calls them PHP2Shell [1]. CVE-2026-109618 and CVE-2026-109619 are each rated 9.2 out of 10 on the CVSS scale, and both let an attacker run their own code on a web server remotely [2][3]. Based on what is known so far, every PHP version from PHP 5 onwards may be vulnerable [2].
What the flaws do
Both bugs are in the way PHP manages memory across web requests [1]. In CVE-2026-109618, running out of memory can stop PHP while internal request data is only half set up. The cleanup routine that runs afterwards then treats the broken values as valid [1]. CVE-2026-109619 involves internal state that belongs to a request and survives after its memory has been released. A later request in the same worker process can then use that state before initialisation overwrites it [1].
A working exploit shows that a single request, with no login, is enough, and that the attack runs before any application code executes [1]. So security measures inside WordPress or a custom framework offer no protection. Any installation that answers web requests is affected, including PHP-FPM, php-cgi, FrankenPHP, LiteSpeed and Apache with mod_php. Of these, mod_php is the most exposed [1]. One early German report still described a login-free attack only as possible [2]. The later technical details indicate that no login is needed [1].
Why the time window is so short
According to Wiz, the defects had been present for decades. Proving that they could be exploited took a chain of steps close to the limit of what human researchers can do, and frontier AI models cut that effort considerably [1]. PC-Welt reports that Wiz used Google's Gemini 4 Argon and OpenAI's GPT-5.6 Sol. A single researcher built a working exploit in about a week, work that Wiz estimates would previously have taken a top team months [3].
Attackers have the same tools. BSI vice president Thomas Caspers expects large-scale attacks within a few hours of the updates being published, because AI tools can analyse the fixes and derive attack methods from them [2]. Amazon Threat Intelligence also reports that its MadPot honeypot network recorded an exploitation attempt on 17 October, four days before disclosure. It came from an IP address belonging to a commercial anonymisation service [1]. How the attacker obtained details while the flaws were still under embargo is unknown [1].
Not just websites
On 22 October Palo Alto Networks confirmed that all versions of PAN-OS and Panorama are affected. At that point, no fixed releases were available [1]. Fortinet is reviewing 12 products and Cisco 31 products and cloud services. Neither has confirmed an affected product so far [1]. Forensics expert Hal Pomeranz expects a long tail of embedded and forgotten installations that will never be updated [1]. Many sites went offline while they were updated, including government sites in the Netherlands, France and Germany [3]. The hoster of ifun.de took that site offline as a precaution [2].
What to do now
- Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or install your vendor's packages. Distributions and LTS vendors received the fixes before the public release [1][3].
- Older versions: PHP 8.1 and earlier are no longer supported. The PHP security team has published minimal source backports for 7.4, 8.0 and 8.1. Otherwise, ask your LTS vendor or upgrade [1].
- remirepo users should switch to distribution packages or build from source. The volunteer-run repository had no update on release day [1].
- Take systems offline if they cannot be patched quickly, as the UK NCSC recommends [1].
- Check coverage for shared hosting, NAS devices, appliances and other embedded PHP. Some hosters patch without telling customers, but you should still confirm the version [3].
- Test with Searchlight Cyber's open-source php2shell-scanner [1]. Cloudflare has deployed WAF rules against the known attack vectors for all customers, including free plans [1]. These rules can bridge the gap until you patch, but they do not replace the patch.
- Because an attack attempt was seen before disclosure, look for signs of compromise as well as missing patches.
Sources
- [1]PHP2Shell: Critical PHP vulnerabilities patched, update now! · helpnetsecurity.com · 22 October 2026
- [2]Schwere PHP-Sicherheitslücken: Wir schalten uns kurz aus · ifun.de · 21 October 2026
- [3]Kritische Sicherheitslücke in PHP sorgt weltweit für Angst und Schrecken: Das steckt dahinter · pcwelt.de · 22 October 2026
Written with AI from the sources above and checked by our team.