Critical PHP Vulnerabilities Expose Millions of Servers to Attacks

Critical PHP Vulnerabilities Expose Millions of Servers to Attacks

In late October, PHP developers released emergency patches addressing two critical vulnerabilities known as PHP2Shell, which allow for remote code execution without authentication. These issues affect nearly all servers utilizing PHP for web request processing, raising alarms among cybersecurity experts. The vulnerabilities, identified as CVE-2026-109618 and CVE-2026-109619, received a CVSS score of 9.2, highlighting their severity.

The vulnerabilities stem from memory handling issues following abrupt request terminations. Specifically, CVE-2026-109618 leads to memory corruption due to out-of-memory errors, while CVE-2026-109619 involves retaining stale global states, enabling potential use-after-free exploits in the heap. This gives attackers the ability to execute arbitrary code with web worker permissions or access sensitive content stored in memory, including passwords and API keys.

The scale of the problem is immense, as PHP2Shell vulnerabilities impact almost all PHP versions, starting from PHP 5.4, which was released in March 2012. An estimated 70% of websites are powered by PHP, making the potential attack surface vast, with over 5.1 million PHP hosts accessible on the internet, around 3.8 million of which have at least one port open.

The vulnerabilities were independently discovered by researchers from several organizations, including Calif, OpenAI, and Wiz. Initial signs of the memory-related vulnerability were spotted in 2020 and 2024, but proof of the remote code execution capability was not established until recently, aided by advanced AI models used in research initiatives.

Experts from Huntress warned that PHP is widely utilized across platforms such as WordPress, Drupal, Joomla, and Magento, making it critical for administrators to act swiftly. Patches have been integrated into PHP versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35, with minimal backports for older, unsupported versions. Administrators are urged to upgrade to the latest versions and restart PHP-FPM, Apache, and other long-running PHP workers to prevent any lingering vulnerabilities.

Following the patch release, reports indicated that attempts to exploit PHP2Shell vulnerabilities surged dramatically, with Cloudflare noting a rapid increase from tens of thousands to millions of attack attempts. Meanwhile, Amazon Threat Intelligence revealed that the first exploitation attempt was recorded on October 17, just days prior to the patch release, indicating that attackers were already preparing to exploit the vulnerabilities.

In light of these developments, organizations have faced significant disruptions, with some opting to take vulnerable services offline rather than wait for patches. Notably, Wikipedia and Internet Archive temporarily disabled access to their services due to these vulnerabilities, although Internet Archive representatives did not publicly link their actions to PHP vulnerabilities.

The emergence of PHP2Shell vulnerabilities serves as a stark reminder of the importance of timely updates and robust cybersecurity measures. As organizations grapple with these threats, the potential for increased competition in security solutions is likely to intensify, prompting providers to enhance their offerings to safeguard against such widespread vulnerabilities.

Informational material. 18+.

" content="b3bec31a494fc878" />