Allgemein

PHP2Shell (CVE-2026-109618, CVE-2026-109619): Two Critical RCE Flaws in PHP and What You Need to Do

By 29. October 2026November 9th, 2026No Comments
Category
Vulnerability Management
Topic
PHP2Shell: Critical RCE in PHP
Target audience
IT Management, Admins & Hosters
Reading time
approx. 6 minutes

PHP runs on a large share of web servers worldwide: behind WordPress, Shopware, Magento, Typo3, internal portals, and countless custom-built applications. All the more reason to pay attention to this week’s news. Under the name “PHP2Shell”, two critical remote code execution vulnerabilities in the PHP core have become public, earlier than planned and before the actual patch. The PHP project has announced an out-of-band security update for 21 October 2026 at 14:00 UTC (16:00 German time). For you, that means: preparation starts now, not after the release.

What is known about PHP2Shell so far

On 20 October, a post appeared on Hacker News announcing two PHP RCE flaws with a CVSS of 10.0. Shortly afterwards, the researchers at watchTowr confirmed that the leak is genuine and that the vulnerabilities are under embargo. That same evening, the PHP project published an advance notice and moved the release date forward to Wednesday, 21 October.

🆔

CVE IDs

CVE-2026-109618 and CVE-2026-109619 (designations from the leak, still without an official description from PHP).

🔥

Severity

PHP itself rates both vulnerabilities at CVSS v4.0 9.2, meaning critical. The 10.0 cited in the leak does not come from the vendor.

💥

Impact

Remote code execution: if successful, attackers could run their own code on the server.

🩹

Patches

Only for the supported branches 8.2, 8.3, 8.4, and 8.5. PHP 8.1, 8.0, 7.x, and 5.x will not receive an official fix.

Still open: The affected component, the technical root cause, and the preconditions (specific configuration, runtime mode such as FPM or CGI, authentication) are not public until the release. The leak claims that all versions from PHP 5 onwards are affected. This has not been confirmed. With the update, PHP intends to publish the full details as well as the affected and fixed versions.

Why you should take this seriously

At the time of this post, according to watchTowr and Huntress, there is no known active exploitation and no public exploit. The vulnerabilities are also not yet listed in the CISA KEV catalog. That is good news, but experience shows it has a short half-life.

1

Patch diffing begins with the release

Once the fix is published, attackers can compare the changes in the source code and derive exploits from them. With CVE-2024-4577, the PHP-CGI vulnerability on Windows, Akamai observed the first attack attempts within 24 hours.

2

Huge attack surface with outdated versions

According to an analysis by Mallory, around 884,000 internet-facing hosts reported PHP 8.1 or older in their HTTP banner, which is about 59% of all hosts that disclose a version. In addition, there are roughly 740,000 hosts without version information. For many of them, there will be no official patch.

3

PHP often sits where nobody looks

Besides classic web servers, PHP is bundled in appliances, Windows software, hosting panels such as Plesk and cPanel, and old projects that nobody actively maintains anymore. These are exactly the systems that tend to slip through the cracks when patching.

Caution with end-of-life versions: If you are still running PHP 8.1 or older, you should not wait for a fix. Check for backports from your Linux distribution or your hoster. If there is none, the only options are upgrading to a supported branch or isolating the system.

What you should do now

Even without technical details, a lot can already be prepared today. The following steps are based on the recommendations of PHP, CERT-EU, and the security researchers involved:

  • Take inventory: Record all PHP installations including version and runtime mode (php -v, php-fpm -v, package manager, container images). Don’t forget appliances, hosting panels, and Windows systems.

  • Prioritize: Internet-facing systems come first, followed by internal applications with sensitive data.

  • Plan a patch window: Keep capacity available from 16:00 German time and clarify in advance when your distribution or hoster will provide the packages.

  • Isolate EOL systems: Upgrade systems with no patch prospects, disconnect them from the internet, or place them behind a VPN or web application firewall. CERT-EU recommends isolating publicly accessible applications if patching is delayed.

  • Sharpen monitoring: Watch for PHP processes (php-fpm, php-cgi, httpd, apache2) that spawn shells, interpreters, or download tools such as curl and wget. On Linux servers without EDR, for example, Florian Roth’s Process-Watcher can log such child processes (observation only, no blocking).

Tip: If you suspect a compromise, isolate the server, secure the web and PHP logs, and specifically look for webshells, new files in the webroot, unknown cron jobs, scheduled tasks, and newly created accounts. Important: secure the evidence first, then clean up.

“A patch day announced in advance is a gift. Those who know today where PHP runs everywhere will be done tomorrow, while others are still searching.”
Mint Secure GmbH

The bigger lesson: asset transparency beats reaction speed

PHP2Shell shows once again that vulnerability management does not begin with installing updates, but with the question of which systems exist in the first place. Companies with a well-maintained asset inventory and defined patch processes can act in a targeted way this afternoon. Everyone else spends the critical first hours searching for forgotten servers.

The topic of end-of-life software is also back in focus. PHP 8.4 and 8.2 will reach the end of their support as early as the end of 2026. Those who plan their version roadmap now avoid the next situation in which there is simply no patch anymore.

Updates released (Update 21.10.2026, 16:30)

The PHP team has since published further information and patches.

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution. All PHP users are strongly encouraged to update immediately.

Who is at risk: all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs.

The vulnerabilities:

  • RCE via OOM corruption, CVE-2026-109618 (GHSA-w8hw-w9fx-j79w): out-of-memory handling can interrupt PHP while internal request data is only partially initialized. Request cleanup may then treat the invalid data as valid.
  • RCE via stale global state, CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp): request-owned internal state can survive after its backing memory has been freed. A later request handled by the same worker may use that stale state before normal initialization resets it.

How to update:

  • Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Source downloads are on our downloads page. Windows source and binaries are on the same page.
  • Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages.
  • PHP 8.1 and older no longer receive updates from the PHP project. Some distributions and LTS vendors provide backported fixes, so contact your vendor for details, or upgrade to a supported version.
  • Given the severity of these vulnerabilities, the PHP security team provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor.

If you cannot update immediately: while only an update is a complete solution, the following measures reduce exposure to specific attack paths but do not make an installation safe.

RCE via OOM corruption (CVE-2026-109618):

  • Set memory_limit=-1, preferably in a way applications can’t override, such as php_admin_value in the FPM pool or Apache configuration, and check that no pool, directory or application setting puts a finite limit back. This removes the controllable PHP memory limit failure, but an underlying allocation failure can still reach the vulnerable path.
  • Set a low post_max_size. For applications that don’t require file uploads, set post_max_size = 8M. If file uploads are necessary, set post_max_size = 32M. Keep upload_max_filesize below post_max_size. Consider enforcing limits at the web server or proxy level for decoded request size, input field count, multipart part count, header count, and nesting depth. These limits must also cover requests without a usable Content-Length.
  • Use a container or cgroup limit as an availability boundary, preferably with a policy that kills only the affected worker. Do not substitute RLIMIT_AS or RLIMIT_DATA, as these can cause the vulnerable allocation failure.

RCE via stale global state (CVE-2026-109619):

  • Set session.upload_progress.enabled=0 and restart every worker. Use php.ini, an FPM pool or server configuration that applies before request parsing. Do not rely on ini_set() or FPM .user.ini. This blocks the confirmed session paths but not other variants.
  • On PHP 8.5, set fatal_error_backtraces=0 and restart every worker. This blocks the confirmed fatal backtrace path only.
  • Remove invalid or deprecated settings applied per request that emit diagnostics before initialization. Hiding diagnostics with error_reporting, display_errors or @ does not help.
  • Fix attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing and cleanup.

The advisories linked above have the full technical details.

 

How Mint Secure supports you

Whether it’s an acute response to PHP2Shell or sustainable hardening of your web infrastructure, we support you pragmatically and quickly:

🔍

Exposure Check

We identify your internet-facing PHP systems and assess versions, configuration, and risk.

🛡️

Vulnerability Management

Together with you, we build inventory, prioritization, and patch processes so that the next critical patch doesn’t turn into a fire drill.

🚨

Incident Response & Forensics

If you suspect a compromise, we preserve evidence, analyze your systems, and support the cleanup.

Want to get started? We offer a free initial consultation.
Get in touch now.

Conclusion

PHP2Shell comprises two critical RCE vulnerabilities in the PHP core that became known prematurely through a leak. The official patch will be released on 21 October 2026 at 16:00 German time and only for the 8.2 to 8.5 branches. No active attacks are known so far, but that can change quickly after the release.

Take inventory of your PHP systems now, plan the patch window, isolate end-of-life versions, and watch for suspicious process activity. Those who are prepared patch in hours instead of days.

Mint Secure supports you with exposure analysis, patch prioritization, and, in the worst case, forensic investigation.
Talk to us.