IT Brief Australia - Technology news for CIOs & IT decision-makers
Australia
PHP2Shell bugs trigger emergency patches & outages

PHP2Shell bugs trigger emergency patches & outages

Wed, 25th Nov 2026 (Today)
Joseph Gabriel Lagonsin
JOSEPH GABRIEL LAGONSIN News Editor

The PHP project has disclosed two critical memory bugs that could let attackers run code on public-facing web servers. The flaws prompted emergency software releases and precautionary shutdowns at some public-sector websites in Europe.

The vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619 and collectively referred to as PHP2Shell, affect PHP itself rather than plugins, themes or individual web applications. Both have a severity score of 9.2 and affect systems that serve web requests through PHP-FPM, Apache with the PHP module, php-cgi, FrankenPHP and LiteSpeed.

Technical details released by the PHP project show that one bug stems from memory corruption when a request runs out of memory, while the other leaves stale state behind for the next request on the same worker. In both cases, an external attacker may be able to execute code on the worker process.

Operators were told to move to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or to take affected systems offline until they could patch them. That advice led some public bodies to suspend services, with Dutch and Finnish agencies pulling public web services as a precaution and France's Interior Ministry taking local-government administration sites offline.

How they work

The bugs affect parts of PHP that handle memory accounting and requests that end early. The PHP Foundation said a request that hits a memory limit at the wrong moment can leave internal data only partly initialised, allowing clean-up routines to treat it as valid.

The related flaw allows state from one request to survive after its memory has been freed, meaning a later request handled by the same worker may use invalid data. Maintainers said they had confirmed a use-after-free and a worker crash on the second bug, and remote code execution on both, including against a real application running on Apache's PHP module.

The underlying flaws had existed for decades, and proving they were reachable required substantial work. Reports were submitted in August and held back until fixes were ready, although the CVE identifiers leaked early with an incorrect severity score of 10 before the published 9.2 rating.

Who is exposed

The disclosure makes clear that the issue sits beneath widely used content management and commerce platforms including WordPress, Drupal, Joomla and Magento. Because the flaw is in the runtime layer, updating a theme or plugin does not address the problem if the underlying PHP installation remains vulnerable.

Risk is highest on Apache with the PHP module, where an unauthenticated request can trigger the out-of-memory flaw before a site's own code runs under default settings. A web application firewall may temporarily block some known request patterns, but guidance says it does not fix the underlying vulnerability.

CISA said it had not observed exploitation at the time of its alert. The same day, Cloudflare's Chief Technology Officer said attacks were emerging, while WatchTowr said attempts had reached its sensors as patches were released.

The disclosure also highlights the position of organisations running unsupported versions. PHP 8.1 and older no longer receive normal releases from the PHP project, although the security team published minimal source backports for 7.4, 8.0 and 8.1 for those building from source or operating without a long-term vendor arrangement.

For many operators on those branches, the options were narrower: upgrade quickly or take systems offline. That helps explain why disruption spread beyond a single ministry or agency, particularly where public sites depended on a runtime that could not be updated through ordinary package channels.

Industry response

The announcement came from MATA, which published an explainer for site owners on the scope of the bugs and the distinction between PHP-based request paths and systems built on other software stacks. The company also used the disclosure to argue for wider use of memory-safe languages in web-facing infrastructure.

"A use-after-free of the PHP2Shell kind is a compile error in safe Rust, not an emergency release," said Tim Almond of MATA.

The disclosure also drew a boundary around that argument, noting that a Rust-based stack does not protect a separate website hosted elsewhere on vulnerable PHP. "Patching PHP is the correct act for a PHP host," Almond said.