The PHP project has issued patches in versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35 to address the two vulnerabilities, both carrying a CVSS severity score of 9.2. The flaws affect all PHP installations serving web requests, including deployments using PHP-FPM, Apache's mod_php, php-cgi, FrankenPHP, and LiteSpeed.
Developers indicated that the highest risk is for mod_php, where a demonstrated exploit can be triggered by an unauthenticated request before any application code runs.
Security vendor CERT-EU issued an advisory ahead of the patches, recommending that organisations isolate internet-facing applications from public networks if immediate patching is not feasible.
Jake Knott, head of threat intelligence at watchTowr, reported that the company's sensors are already detecting exploitation attempts in the wild, featuring various "php2shell" User-Agents. Knott noted that while no successful compromises have been observed so far, he expects that to change.
Several organisations took precautionary measures by taking websites offline, including Finnish government services, Dutch parliamentary websites, and sites belonging to cybersecurity authorities and data protection regulators. Privacy campaign group noyb also temporarily withdrew its website.
The widespread use of PHP in content management systems such as WordPress, Drupal, Joomla, and Magento, as well as shared hosting platforms and control panels, means identifying and patching all exposed installations is a significant challenge. John Hammond, senior principal security researcher at Huntress, noted that the number of places to search for vulnerable PHP versions becomes very large very quickly.
