PHP2Shell is a pair of critical PHP flaws, CVE-2026-109618 and CVE-2026-109619, that can be chained for unauthenticated remote code execution on web servers. Every version since PHP 5.4 is affected. Fixes arrived on 21 October 2026 in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and attacks are confirmed.
Table of contents 5 sections
- PHP2Shell chains two PHP memory bugs, CVE-2026-109618 and CVE-2026-109619, into remote code execution without a login.
- The PHP team released fixes on 21 October 2026 in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
- CISA added both flaws to its Known Exploited Vulnerabilities catalog on 26 October after confirmed attacks.
- End-of-life PHP versions 8.1 and older will not receive official patches.
- A separate, unpatched flaw, CVE-2026-115560, can be mitigated by disabling session.upload_progress.
PHP2Shell is the name for two critical flaws in the PHP language itself, CVE-2026-109618 and CVE-2026-109619, that can be chained to run code on a web server without any login. The PHP security team shipped emergency fixes on 21 October, attacks were confirmed within days, and on 26 October the US Cybersecurity and Infrastructure Security Agency added both bugs to its catalog of exploited vulnerabilities with a three-day deadline for federal agencies.
The reach is what makes this one serious. PHP runs roughly 70 percent of websites, according to W3Techs figures cited by BleepingComputer, and the flaws sit in the language runtime, not in one plugin or app.
What PHP2Shell actually does
According to Zscaler ThreatLabz, the two bugs work like this:
- CVE-2026-109618 is a memory corruption flaw. When PHP runs out of memory in the middle of a request, its clean-up code can follow a pointer the attacker controls.
- CVE-2026-109619 is a use-after-free flaw. Stale pointers left in global state can survive a fatal error and be read by the next request handled by the same worker process.
Both are rated 9.2 out of 10 on CVSS version 4. The typical attack uses two requests to the same worker: the first sets up session state and forces a fatal error or memory exhaustion, the second reclaims the freed memory and runs the payload. Along the way the flaws can also leak memory contents such as credentials, tokens and keys.
Which PHP versions are affected by PHP2Shell?
Zscaler says every PHP version from 5.4 onward is considered vulnerable. For supported branches the vulnerable releases are 8.5.0 to 8.5.11, 8.4.0 to 8.4.26, 8.3.0 to 8.3.35 and 8.2.0 to 8.2.34. The fixed versions are:
- PHP 8.5.12
- PHP 8.4.27
- PHP 8.3.36
- PHP 8.2.35
PHP 8.1, 8.0, 7.x and older are end of life and will not get official patches. Linux distributions sometimes backport fixes into older package versions, so check your vendor's notes rather than relying on the version number alone.
How the attacks unfolded
The disclosure was messy. The PHP team warned administrators on 20 October to prepare for patches, but details including CVE numbers leaked online before the fix shipped, along with proof-of-concept exploits that the PHP team said were not functional. Amazon Threat Intelligence saw attackers targeting the flaws four days before the patches were released.
In the first 48 hours after disclosure, Zscaler's decoy network recorded 1,156 exploitation attempts from 156 IP addresses against 70 organisations, using toolsets including Nuclei templates. Several companies, among them Cloudflare and watchTowr, saw early attempts but judged them unsuccessful.
Then the picture changed. As BleepingComputer reported on 26 October, Adel Karimi, detection and response lead at Perplexity, recorded confirmed remote code execution against a honeypot running Apache with mod_php and PHP 8.4.26. Karimi cautioned that his test setup was deliberately favourable to the attacker and does not prove the exploit is reliable everywhere. Expel researcher Marcus Hutchins called it the highest-quality confirmation of in-the-wild exploitation he had seen.
The fallout has been visible. ANA suspended website and app services from 21 October, which BleepingComputer linked to the PHP2Shell threat, and Quest Diagnostics made a point of saying its own October breach was not related to the PHP issue.
A third bug is still unpatched
There is one more flaw to know about. CVE-2026-115560 is a separate remote code execution risk with no patch yet. The PHP team says it is only exploitable with "an unusual combination of configuration and application code", and it does not bypass the 21 October fixes. Until a patch arrives, the recommended mitigation is to set session.upload_progress.enabled=0 in php.ini, the same setting the PHP team suggested for PHP2Shell before its patches shipped.
What site owners should do now
- Find every PHP install. Zscaler's advice starts with inventory: web apps, bundled appliances, hosting control panels and forgotten test servers.
- Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or your distribution's patched package, and restart PHP-FPM or the web server so the new code actually loads.
- Take unpatchable systems offline or isolate them from untrusted networks if they run end-of-life PHP.
- Apply the session.upload_progress mitigation for CVE-2026-115560.
- Check logs for segmentation faults, crash dumps and unusual memory use, which Zscaler lists as signs of attempts.
- Rotate secrets such as database passwords and API keys if you find signs of compromise, since the bugs can leak memory.
If you run a site on shared or managed hosting, ask your provider whether its PHP builds carry the fix. This is one of the cases where a managed platform earns its keep, as our explainer on IaaS vs PaaS vs SaaS discusses.
The exposure numbers suggest a long tail. VirusTotal estimates more than 5.1 million PHP hosts are reachable online, about 3.8 million of them with at least one port open to attack. Expect mass scanning to continue for months, and watch for the PHP team's patch for CVE-2026-115560.
Frequently asked
- CVE-2026-109618 and CVE-2026-109619: PHP2Shell — Zscaler ThreatLabz
- PHP2Shell security flaws now successfully exploited in the wild — BleepingComputer
- Known Exploited Vulnerabilities Catalog — Cybersecurity and Infrastructure Security Agency
0 comments
No comments yet — be the first.