PHP Vulnerabilities CVE-2026-109618 / CVE-2026-109619 (PHP2Shell): Critical RCE Flaws Under Attack

On 21 October 2026 PHP fixed two critical flaws (CVSS 9.2) allowing unauthenticated remote code execution. Exploitation attempts have been seen since 17 October and a confirmed intrusion at a European government agency was reported; mass successful exploitation is not confirmed. Update 25 October: no patch yet for the new CVE-2026-115560.
Update – 25 October 2026: The first version of this advisory (22 October) said the attacks were "widespread". Later information clarified the picture: widespread exploitation attempts continue and Palo Alto Unit 42 reported a confirmed intrusion at a European government agency, but mass successful exploitation has not been confirmed. PHP also disclosed a new CVE (CVE-2026-115560) that is not fixed by the 21 October patches. The text has been updated accordingly.
Summary
On 21 October 2026 the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, fixing two critical vulnerabilities that can allow unauthenticated remote code execution (RCE). Dubbed "PHP2Shell" by researchers, the flaws are not in a plugin but in PHP itself.
- CVE-2026-109618 (GHSA-w8hw-w9fx-j79w): RCE via memory corruption during out-of-memory (OOM) handling.
- CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp): RCE via stale global state left over from a previous request (use-after-free).
- CVSS v4.0: 9.2 (for the first two CVEs), severity: Critical (the 10.0 score circulating on social media is wrong).
- CVE-2026-115560 (new, 23 October): a separate RCE flaw not fixed by the 21 October patches. No patch yet; it triggers only under an unusual configuration combination (see below). No CVSS score has been published yet.
- Exploitation: Attempts have been seen since 17 October, and Palo Alto Unit 42 reported a confirmed intrusion at a European government agency. Mass successful exploitation is not confirmed: CISA says it has not observed successful exploitation, and neither CVE is in the CISA KEV catalog as of 25 October.
- Remediation status: Patch released for CVE-2026-109618 and CVE-2026-109619; none yet for CVE-2026-115560.
What is the flaw?
CVE-2026-109618: If a request hits PHP's memory_limit at exactly the wrong moment, PHP can leave partially initialised internal data behind and later treat it as valid, corrupting memory. Attackers can trigger this with crafted multipart (file upload) requests. According to PHP, on Apache with mod_php a single unauthenticated request can achieve RCE with default settings before any application code runs; RCE was also confirmed on PHP-FPM via application code paths.
CVE-2026-109619: After a fatal error, request-owned internal state can keep pointing to freed memory. A later request handled by the same worker may use that memory. RCE was demonstrated against a real-world application.
Who is affected?
According to PHP, every PHP installation serving web requests is at risk: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed, with mod_php at highest risk. In practice this covers WordPress, Joomla and Drupal sites, PHP-based e-commerce platforms, shared hosting (cPanel, Plesk) and VPS servers.
Affected and fixed versions
| PHP branch | Affected | Fixed version |
|---|---|---|
| 8.5 | before 8.5.12 | 8.5.12 |
| 8.4 | before 8.4.27 | 8.4.27 |
| 8.3 | before 8.3.36 | 8.3.36 |
| 8.2 | before 8.2.35 | 8.2.35 |
| 8.1 and older | End of life | No official release; patched package from your distribution/LTS vendor or upgrade to a supported version |
The PHP security team also published minimal source backports for 7.4, 8.0 and 8.1 for those building from source. Linux distributions received the patches in advance, so check your vendor's updated packages. The volunteer-run rpms.remirepo.net repository did not have updates on 21 October; PHP urges its users to switch to distribution packages or build from source. PHP 8.2 reaches end of life on 31 December 2026.
cPanel and Plesk
- cPanel (EasyApache 4): patched packages ea-php82 8.2.35, ea-php83 8.3.36, ea-php84 8.4.27, ea-php85 8.5.12; for EOL versions ea-php74 7.4.33-19, ea-php80 8.0.30-12, ea-php81 8.1.34-5. cPanel & WHM builds 11.110.0.153, 11.134.0.66, 11.136.0.50 and 11.138.0.18 are available. Restart PHP-FPM and Apache after updating.
- Plesk Obsidian: PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 are available for Linux and Windows. On Linux, 7.4.33, 8.0.30 and 8.1.34 keep the same version number; builds dated 21 October 2026 include the fix. Plesk's own PHP engine (sw-engine / plesk-engine) is also affected: update to Plesk Obsidian 18.0.80 Update 11 or 18.0.81 Update 4.
- Shared hosting: the fix must come from your hosting provider. Ask them to confirm the PHP build serving your site and that services were restarted.
Exploitation status
- 17 October 2026: Amazon Threat Intelligence detected an exploitation attempt four days before disclosure. Multiple PoCs appeared on 21 October and widespread attempts from different actors followed.
- Confirmed intrusion: Palo Alto Unit 42 reported an attack on a European government entity: within two hours of the initial exploitation the attackers had accessed password hashes and MFA secrets, set up an NTLM-relay tunnel into Active Directory and attempted Domain Admin escalation. Based on the command patterns, Unit 42 assesses that the attacker used an agentic AI tool.
- Mass successful exploitation not confirmed: In its alert (updated 23 October) CISA states it has not observed successful exploitation. Sophos retracted its 22 October report of a successful exploitation five hours later; it saw only scanning and failed attempts and says developing a working exploit is not straightforward. As of 25 October, CVE-2026-109618 and CVE-2026-109619 are not in the CISA KEV catalog.
- Public exploits: According to a secondary source (relaying assessments by Rapid7 and Sansec), they only work under narrow conditions, not against default installations. We could not verify this from a primary source.
- Bottom line: Even if successful attacks are limited for now, attackers keep trying and at least one real intrusion has occurred. Do not delay patching.
Turkey: TR-26-1372
Turkey's Cyber Security Directorate (formerly USOM) published notice TR-26-1372 on 21 October 2026, recommending to:
- identify affected systems and upgrade them to secure versions without delay,
- restrict external access to management interfaces and critical PHP services to trusted IP addresses via firewall/ACL rules,
- immediately block international traffic to systems that do not need access from abroad.
New: CVE-2026-115560 (23 October)
On 23 October 2026 the PHP security team published an informational advisory: CVE-2026-115560, a separate remote code execution flaw related to session upload progress. It is not fixed by the 21 October patches and there is no patch yet; PHP says the fix will ship in the next regular release, together with the full advisory.
According to PHP, it can only be triggered under an unusual combination. All three must be true:
session.serialize_handleris set tophp_binaryorphp_serializein the configuration,- the application switches it to
phpat runtime withini_set()before callingsession_start(), - session upload progress (
session.upload_progress.enabled) is still enabled.
Applications that never change the serialize handler at runtime are not exposed through this path. Mitigation: set session.upload_progress.enabled=0 in php.ini, the FPM pool or the server config and restart all workers (ini_set() or .user.ini will not work). If you already applied this for CVE-2026-109619 on 21 October, no further action is needed. This setting does not replace the 21 October updates; apply both.
Systems that cannot be patched immediately, or run PHP 8.1 and older
CISA's advice: organizations that cannot update immediately, or that keep using unsupported PHP 8.1 or earlier, should take PHP-based systems offline until they are patched or updated. A web application firewall (WAF) may provide some protection until then. Also monitor for suspicious activity such as PHP worker processes launching shells or downloading tools.
If you cannot update immediately
According to PHP, only an update is a complete fix. The following measures merely narrow specific attack paths and do not make an installation safe:
For CVE-2026-109618
- Set
memory_limit=-1in a way applications cannot override (e.g.php_admin_valuein the FPM pool or Apache config). - Lower
post_max_size:8Mif no uploads are needed, otherwise32M; keepupload_max_filesizebelow it. - Enforce limits on request size, field count, multipart parts and headers at the web server/proxy (including requests without a usable
Content-Length).
For CVE-2026-109619
- Set
session.upload_progress.enabled=0inphp.ini, the FPM pool or server config and restart all workers (ini_set()or.user.iniwill not work). - On PHP 8.5, set
fatal_error_backtraces=0.
Review logs from 17 October
Because exploitation began before disclosure, Amazon recommends starting investigations from at least 17 October 2026. On internet-facing PHP servers, review web server and PHP-FPM logs for unexpected PHP worker crashes, unusually large multipart/POST requests, new or modified files (web shells) and new admin accounts.
CISA's monitoring advice: watch for PHP worker processes launching shells or downloading tools. On internet-facing PHP servers also look for unexpected process crashes, unusually large multipart/POST requests, new or modified files (web shells) and new admin accounts.
Sources
- PHP security advisory (21 October 2026)
- GHSA-w8hw-w9fx-j79w – CVE-2026-109618
- GHSA-6wmf-4rv5-p3rp – CVE-2026-109619
- Palo Alto Unit 42 – PHP2Shell threat brief
- CISA alert – critical PHP vulnerabilities (updated 23 October)
- PHP informational advisory – CVE-2026-115560 (23 October)
- Sophos – PoC and exploitation update
- The PHP Foundation
- Amazon Threat Intelligence
- cPanel article
- Plesk article
- CERT-EU Security Advisory 2026-018
- Turkish Cyber Security Directorate, TR-26-1372 (siberguvenlik.gov.tr)
How can Doğa Network help?
We check which PHP version your website, hosting account or VPS runs, update it to a patched release, update your cPanel/Plesk servers and review your logs from 17 October onwards. For applications stuck on unsupported PHP versions, we prepare a migration plan.
📞 +90 850 888 3642 · ✉️ hi@doga.network



