PHP still runs a very large share of the web, from WordPress and Drupal sites to custom business platforms. When its core runtime has a serious flaw, the exposure is huge. That is the case with PHP2Shell, a pair of vulnerabilities that security teams have treated as an emergency.

Note on dates: the headline PHP vulnerabilities were publicly disclosed on 21 October 2026. They were reported to the PHP team in August and September, with a related PHP-ecosystem incident (Magento) in September.

What was found

PHP2Shell is the name given to two flaws, CVE-2026-109618 and CVE-2026-109619. Each carries a CVSS v4.0 score of 9.2, and both can allow unauthenticated remote code execution. In plain terms, an attacker needs no password or account to run their own commands on a vulnerable server. Early notices wrongly gave a score of 10.0, a mistake that came with a wrong release time, but the correct figure is still critical.

The two bugs are memory-safety problems in different parts of request handling:

CVE-2026-109618 (out-of-memory corruption): triggered when PHP runs out of memory partway through setting up a request, leaving internal data half built for the cleanup code to trust. An attacker who can push the server into that state can turn the cleanup into code execution.

CVE-2026-109619 (stale global state): PHP keeps references to request data after the memory behind it has been freed. This is a classic use-after-free pattern.

Who is at risk

The reach is broad. Every PHP installation serving web requests is affected, including Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. The PHP team regards mod_php as the riskiest setup. Researchers have also shown the bugs working against popular software: unauthenticated RCE was confirmed against Drupal and WordPress during research.

Hosting panels need attention too. Plesk, for example, published its own advisory because it ships its own PHP builds, and it also flagged a separate out-of-bounds write in Brotli bundled with PHP on Plesk for Windows.

How the disclosure went wrong

The timeline matters because it shows why patching can't wait. Wiz Research discovered the first flaw on 19 August and reported it to the PHP security team on 24 August. PHP acknowledged the reports on 21 September, and patched releases and public disclosure followed on 21 October.

Then the coordinated process broke down. Exploits began circulating the night before the release because of a leak in the disclosure process. The attack window opened before many administrators knew a patch existed. CISA added both CVEs to its Known Exploited Vulnerabilities catalog on 26 October. That listing means exploitation in the wild is confirmed, so this is no longer theoretical.

A third issue

On 23 October, CERT-EU reported a third RCE-capable flaw, CVE-2026-115560, with no technical details yet and a full advisory promised with the next release. There is an interim mitigation: set session.upload_progress.enabled=0 and restart every worker until the next regular bugfix release.

How to address it

1. Upgrade now. This is the only real fix. The PHP project states that there are no complete mitigations and updating is the only safe choice. Move to the patched release for your branch — PHP 8.5: 8.5.12; PHP 8.4: 8.4.27; PHP 8.3: 8.3.36; PHP 8.2: 8.2.35. Restart PHP-FPM, Apache or your web server afterwards. A patched package on disk does nothing while old worker processes are still running.

2. Deal with end-of-life versions. PHP 8.1 and older no longer receive updates from the PHP project. If you still run them, either migrate to a supported branch or confirm your vendor has backported the fix. Plesk, for instance, rebuilt its EOL 8.1, 8.0 and 7.4 packages on 21 October. Check the build date, not just the version number. Also plan ahead: PHP 8.2 reaches end of life on 31 December 2026.

3. Inventory everything. The forgotten installs are the dangerous ones. Check internal appliances, hosting panels such as cPanel and Plesk, and bundled standalone binaries like php.exe and php-cgi.exe. Docker images deserve a special look, because a base image built months ago still contains the vulnerable runtime until you rebuild it.

4. Hunt for signs of compromise. Patching closes the door but does not evict someone who already got in. Exploitation typically shows up as unusual child processes spawned directly by PHP workers such as php-fpm, php-cgi or apache2. Alert on web server processes launching shells or system utilities. Review logs from 20 October onward for malformed or unusually heavy requests, and look for new or modified PHP files in web directories.

5. Add layers while you patch. These don't replace the update, but they limit damage:

Run PHP workers under low-privilege accounts with no write access to code directories.

Disable dangerous functions such as system and exec where the application doesn't need them.

Put a WAF in front of public apps and set sensible memory and request-size limits.

Segment web servers from databases and internal systems so one compromised host doesn't expose the rest.

A September lesson: Magento's StyleSmuggler

September's own big PHP-ecosystem story came from Magento. StyleSmuggler, a GraphQL template-injection flaw disclosed by Sansec, was actively exploited from 4 September 2026, and Adobe shipped its fix (CVE-2026-75650, APSB26-146) on 7 September. It carries an important warning: applying the patch does not clean a store that was already compromised during the exploitation window. The same rule applies to PHP2Shell: patch first, then investigate.

The takeaway

PHP2Shell is a reminder that language runtimes are attack surface too, not just the applications built on them. The practical routine is simple: keep an up-to-date inventory of every PHP instance you run, patch quickly when a critical advisory lands, retire end-of-life versions, and monitor for abnormal behaviour from web processes. For anyone managing client servers, including banking and enterprise systems, treat this as a priority update today, and check again when the next PHP bugfix release arrives with the full advisory for the third flaw.

Sources