PHP2Shell: what happened and what we did

PHP2Shell brought half the Netherlands to a standstill. The vulnerability was in PHP itself, not WordPress. Here’s what went wrong, which PHP versions were vulnerable and have been patched, and how we protected our customers.

This week, half the Netherlands went down because of two critical PHP vulnerabilities. Your site could have been vulnerable even though all your plugins were fully up to date. Here’s what happened and how we protected our customers.

In one minute: what went wrong and what we did.

What happened

On 20 October, a demo of an attack tool called PHP2Shell (CVE-2026-109618 and CVE-2026-109619) was leaked. The flaw was not in WordPress, a plugin, or a theme, but in PHP itself: the language that powers around seven out of ten websites. And it had been there since 2012, unnoticed for fourteen years.

9,2
CVSS score, two CVEs
69%
of all websites run on PHP
1,9M
PHP servers directly discoverable via Shodan
14 yrs
of versions vulnerable, from PHP 5.4

Sources: Wiz Research, W3Techs, Tenable

Half the Netherlands pulled the plug

Because the details leaked before an update was available, many organizations took their sites offline as a precaution. A site that went offline wasn’t hacked. It was a precautionary measure.

DigiDOFFLINE
MijnOverheidOFFLINE
House of RepresentativesOFFLINE
NCSCOFFLINE
TweakersOFFLINE
13 regionsOFFLINE

Sources: NOS, ANP

What was the problem?

Not your website

The vulnerability wasn’t in WordPress, a plugin, or a theme. Your site wasn’t built incorrectly.

But in PHP itself

With a single cleverly crafted request, an attacker could run code on the server or read memory. Without logging in.

The vulnerability was discovered by Calif, Wiz, and OpenAI, who used AI to turn a 14-year-old bug into a working attack in about a week.

For the curious

The cause: PHP didn’t clean up the mess

clever request, memory fills up
PHP stops halfway
→
cleanup stops too
Old data remains
→
next request, same process
Picks up that old data

CVE-2026-109618: memory fills up, PHP doesn’t clean up properly, and the leftovers let an attacker execute code.
CVE-2026-109619: old data leaks into a subsequent request, such as passwords, tokens, and keys from server memory.

Source: Wiz Research, PHP GHSA

The mitigation

How we stopped it with Imunify360

Our servers run on CloudLinux with Imunify360 as the firewall. It protects every site with multiple layers. Even before the official patch was available, a new WAF rule blocked the suspicious request before it could reach PHP.

Network firewallknown malicious IPs
WebShieldsuspicious and bot-like visitors
WAF, ModSecurityinspects every request
BLOCKED
Proactive Defensemonitors suspicious PHP behavior
Malware scannerchecks files
Your
website
attack request

The WAF rule recognizes the suspicious upload request and blocks it at the front door.
multipart request with PHP_SESSION_UPLOAD_PROGRESS

Plus, on every server: upload progress disabled, session security strengthened, and an updated ModSecurity rule set. A temporary safeguard, not a replacement for the patch.

Source: CloudLinux Imunify360

Which PHP versions, and the fix

BranchVulnerablePatched in
PHP 8.5< 8.5.128.5.12
PHP 8.4< 8.4.278.4.27
PHP 8.3< 8.3.368.3.36
PHP 8.2< 8.2.358.2.35
PHP 7.x and 8.1everything, from 5.4 (2012)CloudLinux backport

Every release before these versions was vulnerable. We now run patched PHP on all our servers, for every version. You don’t need to do anything.

Source: PHP.net advisory, CloudLinux

No worries

Why do I still see an older PHP version?

The version numbers above are the releases from PHP.net. We run CloudLinux, which also applies security patches to existing PHP versions. This is called a backport: the security vulnerability is fixed while the visible PHP version number may stay the same. All WP Provider servers have both security patches installed.

Do you have SSH access? Run php -v to see the PHP version used on the command line and its build date. For example:

PHP 8.3.35 (cli) (built: Oct 21 2026 00:00:00) (NTS)

The version number here is still 8.3.35, but the build date shows that this is a rebuilt version. The date alone doesn’t prove that a specific patch is present. That’s why we also check the full package version and the changelog, which explicitly mentions CVE-2026-109618 and CVE-2026-109619.

As a result, a scanner that only compares the PHP version number with the releases on PHP.net may issue a false warning. Also note: the PHP version on the command line may differ from the version your website uses.

CloudLinux explains this approach on the official status page.

What the patch does

The core

PHP now cleans up properly

If the memory fills up, PHP stops immediately and cleanly. No old data left behind.

The firewall

Imunify360 blocks the route

A ModSecurity rule set that stops known attack requests right at the door.

The restart

Workers restarted

Old PHP processes keep running old code. That’s why we restart every PHP worker after the update.

Do you manage WordPress sites for clients?

This is part of managed hosting for us: keeping up with developments, taking action, and being available for questions. So you can be there for your clients as a web designer, developer, or agency. Looking for a hosting partner who’ll work with you on this? Let’s meet.

Meet WP Provider
Questions about your own site? Email support@wpprovider.nl or call 085 130 49 97

Request web hosting

Request your hosting account below!

Request a benchmark now

Do you feel like your website could be faster? Let us run a benchmark. We guarantee that your website will run faster on our hosting!