Two 9.2-rated vulnerabilities let attackers run code on your web server without logging in. Emergency fixes shipped October 21. Here’s what you need to know and do.
On October 21, the PHP project shipped emergency releases for two critical vulnerabilities — CVE-2026-109618 and CVE-2026-109619 — now collectively being called PHP2Shell. Both allow an attacker to execute code on a web server without any authentication, and on servers running Apache’s mod_php, the attack works before the website’s own code even starts.
The release arrived a day ahead of schedule because technical details leaked online on October 20. That urgency tells you everything: this is not a routine patch cycle.
Why PHP2Shell Is Different
Most PHP vulnerabilities require some precondition — a misconfigured application, a vulnerable plugin, an authenticated user. PHP2Shell does not. Both flaws are exploitable over the network with no login and no user interaction. The trade-off is that the attack is complex to pull off, but PHP has confirmed working attacks against mod_php, and against PHP-FPM through its session upload progress feature.
The scope is what makes this urgent:
- PHP runs roughly 69% of websites whose server-side language is known (W3Techs) — including WordPress, Joomla, Drupal, and Magento.
- Attackers were already moving before the patch existed. Cloudflare and Patchstack both reported attack attempts prior to the release, and exploit code is circulating on GitHub.
- The oldest servers are the most exposed. PHP 8.1 and earlier are end of life and receive no official update — yet a Mallory scan found about 59% of internet-facing servers revealing their PHP version are running one of those releases.
The Two Flaws at a Glance
| CVE-2026-109618 | CVE-2026-109619 | |
|---|---|---|
| Root cause | Memory corruption when PHP runs out of memory mid-request | Reuse of freed memory left behind by a failed request |
| CVSS v4.0 | 9.2 (Critical) | 9.2 (Critical) |
| Vector | Network, no authentication, no user interaction | Network, no authentication, no user interaction |
Affected: all PHP versions below 8.2.35, 8.3.36, 8.4.27, and 8.5.12 — including end-of-life 8.1 and older, which get no official fix.
Fixed in: 8.5.12, 8.4.27, 8.3.36, and 8.2.35. On cPanel, EasyApache 4 25.91 covers ea-php74 through ea-php85.
Exploitation status: attack attempts reported by Cloudflare and Patchstack. Public exploit code is unverified. Not in CISA KEV as of drafting.
Attack surface: mod_php is most at risk. PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed are also affected.
What You Need to Do Now
1. Inventory every PHP install
This includes the easy-to-miss ones:
- Client sites on managed or third-party hosting
- cPanel and Plesk servers, and VPSs
- IIS servers running PHP
- PHP-based tools such as Nextcloud, LibreNMS, and the Zabbix web frontend
Critically: check the version the web server actually loads — it can differ from what php -v shows on the command line.
2. Patch, then restart
- Update to 8.5.12, 8.4.27, 8.3.36, or 8.2.35 — or your distribution’s backported package. Source and Windows builds are on PHP’s downloads page.
- Restart PHP-FPM, Apache, or LiteSpeed so the workers load the new build. Patching without restarting leaves you exposed.
- On cPanel, apply EasyApache 4 25.91.
- The Remi repository has no release-day updates — switch those servers to distribution packages or build from source.
3. Plan for end-of-life branches (8.1 and older)
- Use PHP’s minimal source backports for 7.4, 8.0, and 8.1, or a vendor backport such as CloudLinux.
- If neither fits, upgrade to a supported branch.
- If an internet-facing system can’t be fixed, take it offline, per UK NCSC guidance.
- Note: PHP 8.2 reaches end of life on December 31.
4. Hunt for signs of compromise
- In web logs, look for multipart requests using the boundary strings
B7kQpoc618orB7kQpoc619. - Alert on
php-fpm,php-cgi,httpd, orapache2starting shells or download tools. - Check for new files in web roots, new cron jobs, and new accounts.
- Preserve logs before rebuilding — a clean log doesn’t prove a clean server.
5. Reduce exposure if you can’t patch yet
A handful of mitigations can lower the risk, though none remove it. See PHP’s advisory for the full list.
6. Confirm with hosting providers
For client sites on third-party hosting, ask each provider for its patch status and the PHP version your sites now run. Don’t assume — verify.
The Bottom Line
Attack attempts started before the patch even existed. That means the only window that matters now is the one between this release and your rollout. Address PHP2Shell before it’s too late.
Close it fast. Start with internet-facing servers, work inward, and treat this as tonight’s job — not this week’s.
If your team is looking for a partner who looks out for these attacks, and patches them so you don’t have to, reach out to our team here.




