PHP2Shell flaws trigger patch warnings as exploit attempts surge
PHP maintainers released fixes on October 21 for critical engine vulnerabilities. Operators face the task of finding exposed installations, including legacy systems, as security agencies urge remediation.

Critical vulnerabilities in PHP's core engine have prompted urgent patch warnings and precautionary website shutdowns, with fixes released on October 21, according to Analytics India Magazine. The flaws, grouped under the name PHP2Shell, concern memory handling inside the language rather than a weakness confined to an individual website.
The discovery began before the public warning. Calif, a security research firm working with OpenAI, notified PHP maintainers of a vulnerability in August after using OpenAI's GPT-5.6 Sol model. Wiz independently identified additional vulnerabilities later that month with models from Google and OpenAI. The vulnerabilities received a critical severity rating of 9.2 out of 10.
PHP processes requests on web servers, retrieves database information and helps generate pages for visitors. Its users include WordPress, Drupal, Joomla and MediaWiki, alongside business and legacy applications. A defect in that shared engine requires remediation across hosting companies, software distributors and the organisations operating affected installations, not just an edit to a single site's application.
Two memory failures
The first vulnerability, CVE-2026-109618, concerns error handling when PHP exhausts its available memory. Request cleanup can begin while required data structures are still incomplete, leaving the engine to work with invalid or unfinished data.
The second, CVE-2026-109619, concerns references that survive after request data should have been cleared. A subsequent operation can reach memory that has already been freed. Under the demonstrated attack conditions, both failures can permit remote code execution.
Wiz identified affected releases extending back to PHP 5.4 and warned that successful exploitation could enable server takeovers, information theft or website defacement. The PHP project advisory covers PHP-FPM, mod_php for Apache, php-cgi, FrankenPHP and LiteSpeed, although exposure varies with the deployment configuration.
Apache's mod_php is among the highest-risk configurations identified in the advisory. Researchers demonstrated an attack initiated by an unauthenticated request before the website's own application code begins running. That timing places the failure inside the engine's request processing, ahead of controls implemented by the application.
JFrog security researcher Niv Lanyado warned that application safeguards and code-level workarounds cannot be relied on to prevent this engine-level failure. His guidance emphasised finding installations across environments, particularly obsolete PHP versions that will not receive vendor-provided binary updates, so that exposed endpoints can be patched or isolated.
Attempts rise around disclosure
Cloudflare chief executive Matthew Prince described thousands of exploitation attempts during the 10 hours preceding public disclosure. His account put the volume at tens of thousands within 45 minutes after the announcement, hundreds of thousands within two hours and subsequently millions. Those figures describe attempts, not a confirmed tally of compromised servers.
Government websites in Britain, the Netherlands, France, Denmark and Finland were taken offline during the response. The shutdowns were precautionary while administrators assessed exposure and installed fixes; they do not establish that each website suffered a breach. India's CERT-In classified the vulnerabilities as critical and warned of remote code execution and potential complete system compromise.
The US National Security Agency urged operators to prioritise the relevant vendor patches and inventory hardware and software services dependent on vulnerable PHP releases. Cybersecurity agencies also advised taking exposed websites offline if they could not be secured.
Finding every installation is a substantial part of the response. Don Smith, vice president of threat intelligence at Sophos Counter Threat Unit, identified PHP embedded in websites, content management systems, hosting platforms and third-party tools as an inventory challenge. He also urged monitoring of PHP and web-server processes for abnormal activity or command execution that might indicate an existing foothold.
Administrators should install the corrected release for their supported PHP branch. Where an immediate update is not possible, the guidance calls for assessing exposure and considering temporary removal of affected internet-facing systems from service until remediation is possible.




















