PHP2Shell: attempts began four days before the PHP fix existed

Two PHP flaws let an unauthenticated request run code before any application code runs. Amazon logged an attempt four days before the fix, and PHP says no setting fully closes it.

Share

This story has been updated since it was published. The most recent change was on 23 October 2026. See what changed.

On 21 October 2026, the PHP project shipped fixes for two flaws in the language itself, CVE-2026-109618 and CVE-2026-109619, which researchers have named PHP2Shell. Both let an unauthenticated attacker run code on a server that uses PHP to answer web requests. On Apache's mod_php, PHP's own advisory says the confirmed exploit happens "entirely before any application-specific code begins execution": the login page is never loaded, so nothing on it is asked anything. Four days before the fix, on 17 October, Amazon's honeypot network had already recorded an attempt.

PHP's own advisory is unusually blunt about the options. Updating to a fixed release is "the only complete mitigation", and the configuration changes it lists reduce exposure without closing the flaw.

What actually happened

DateEvent
17 October 2026Amazon records a PHP2Shell exploitation attempt in its MadPot honeypot telemetry, from an address on a commercial anonymization network
20 OctoberDetails become public ahead of the scheduled release, and watchTowr publishes guidance that evening
21 OctoberPHP ships 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The Canadian Centre for Cyber Security issues alert AL26-026. Cloudflare reports early attacks
21 to 22 OctoberAmazon reports broad exploitation attempts from multiple actors. watchTowr reports attempts against its honeypots

The first flaw sits in how PHP recovers when it runs out of memory partway through setting up a request. The second leaves internal state from one request pointing at freed memory, which the next request on the same worker can use; PHP lists memory disclosure among its confirmed impacts. PHP scores both at CVSS v4.0 9.2, with high attack complexity.

PHP confirms the exploit on Apache's mod_php. PHP-FPM is assessed as susceptible from source analysis, though no complete exploit against it has been demonstrated. Branches 8.1 and older receive no official release; PHP published source backports for 7.4, 8.0 and 8.1.

PHP credits researchers at Calif, Wiz and OpenAI with the find, and Calif and Wiz have both said they used AI models in the work. We argued in September that AI is collapsing the labor between finding a flaw and using it. A flaw in the runtime under most of the web, found that way and probed before its fix shipped, is what that looks like from the defender's side.

Two things are not yet established. Amazon says it is unclear whether the attempts it recorded would have succeeded against real systems, and no successful compromise had been publicly confirmed by 22 October, when neither flaw was yet in CISA's Known Exploited Vulnerabilities catalog.

The gap: the application never got a vote

Most of what an organization does to secure a web application lives inside the application.

  • Logins, multi-factor authentication and roles are application code. On mod_php the confirmed exploit runs before any application code does, so none of them is asked anything.
  • Configuration workarounds exist and are partial. PHP names a memory limit setting and disabling session upload progress, and says neither makes an installation safe.
  • Web application firewall rules were published quickly, and Cloudflare calls its own a stopgap that covers only traffic routed through it.
  • Patching is the answer, and for a server the organization runs itself it is a package update and a restart. PHP also ships inside products the organization does not build. The Canadian alert tells organizations to find the third-party products, appliances and containers that bundle PHP, and those wait for their vendor.

When the flaw is in the language, every login written in that language runs second.

What would have had to be true

PHP serves two very different populations, and only one of them belongs in this answer.

A public website, a shop or a customer portal exists to answer strangers. No origin decision belongs in front of it, and for those servers the fixed release is the whole of the response.

The rest is the PHP that serves an organization's own people. The help desk on osTicket, the IT asset inventory on GLPI, the Zabbix monitoring console, the phpMyAdmin page an administrator uses to reach a database: each requires PHP by its own documentation, and each exists for staff. So do the intranet and the HR and expense tools. So does the web console inside an appliance, which the Canadian alert singles out: the PHP in it is fixed when its vendor ships a build, not when its owner runs an update.

On 23 October, Palo Alto Networks showed what that looks like. Its advisory confirms the flaws reach the management web interface and XML API of PAN-OS and Panorama on five branches, and lists 20 hotfix builds estimated for 26 to 30 October. It knows of no malicious exploitation against its products, and its interim guidance is to restrict the management interface to trusted internal addresses. Until those builds ship, the operator's remedy is the vendor's release schedule.

Their legitimate audience is staff, and for any of them that cannot be updated today, the Canadian Cyber Centre's advice is to consider "isolating internet-facing applications from public networks until a fix can be applied".

Source restriction in front of those applications is available on the firewall or cloud security group already there. It is rarely the standing state because the list decays: staff work from home, from a client site, from a mobile connection that renumbers. A missing address is a support ticket within minutes, while one left in too long is silent, so the range widens until it no longer restricts anything.

Where Veribound would have fitted

Veribound is a Pre-session Edge Access Control (PEAC) platform and an intelligence layer. It is additive: the applications stay, their logins stay, the PHP update is still required, and the organization's own firewall or cloud security group keeps enforcing its own policy, unchanged.

An agent on each staff device keeps confirming it is still the one the organization trusted. What reaches the customer's existing controls is a trusted origin: the network that device is connecting from, in practice its public address. Those arrive as address-group updates against policy the organization already has, which is the isolation the Canadian Cyber Centre recommends for anything unpatched, already in place on 17 October.

Applied to a staff-only PHP application:

  • The scan returns nothing, so the server does not enter a target list built in the four days before anybody knew to patch.
  • The crafted request does not arrive, so the runtime never starts the request it was built to corrupt.
  • Bundled PHP is covered while the vendor works, because the decision concerns who gets a reply, not which build is installed.
  • The list maintains itself, changing when somebody changes network.

What this would not have done. It does not repair either flaw, and the fixed releases remain the remedy. It does nothing for a public website or customer portal, which has to answer strangers. It would not stop an attacker working from a device and network the organization already trusts, or reverse anything on a server reached before the restriction existed, which is why Amazon advises looking back to 17 October. Integrations that call a staff application from servers elsewhere sit at addresses a static network object already covers.

The fix existed on 21 October. The attempts began on 17 October. For a staff application in those four days, the only property anyone could change was who it answered.

Source: GHSA-w8hw-w9fx-j79w, RCE via OOM corruption, PHP, 21 October 2026.

Source: Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot, Amazon, 21 October 2026.

Source: AL26-026, Critical vulnerabilities impacting PHP, Canadian Centre for Cyber Security, 21 October 2026.

Source: php2shell frequently asked questions, Tenable, 21 October 2026.

Updates and corrections

Update, 23 October 2026. Added Palo Alto Networks' confirmation that the flaws reach the PAN-OS and Panorama management interface, with 20 hotfix builds estimated for 26 to 30 October.

Share