CVE-2026-109618 & CVE-2026-109619 (“php2shell”): The Critical PHP RCE Every Website Owner Needs to Patch Now

Critical PHP RCE alert graphic for CVE-2026-109618 and CVE-2026-109619, the php2shell vulnerabilities, CVSS 9.2

If you run any website on PHP — WordPress, Laravel, a custom app, anything — there’s a vulnerability from late October 2026 you need to know about. It’s being tracked under two CVEs, nicknamed “php2shell,” and it’s about as serious as it gets: unauthenticated remote code execution, meaning an attacker doesn’t need a login, a password, or any access to your site at all. A single crafted HTTP request is enough.

Both vulnerabilities carry a CVSS score of 9.2. PHP’s own advisory doesn’t mince words: “updating is the only safe choice.”

What Actually Happened

On October 21, 2026, the PHP project shipped emergency patches for two separate but related bugs:

CVE-2026-109618 — RCE via out-of-memory corruption. PHP enforces its memory_limit setting using a low-level mechanism that can interrupt execution mid-request. If that interruption happens while PHP is only partially done setting up internal request data (the example PHP gave involves parsing a file upload), the cleanup process can end up treating that half-initialized, attacker-influenced memory as if it were valid and safe.

CVE-2026-109619 — RCE via stale global state. Internal state tied to one request can outlive the memory it was built on — for instance, after a fatal error. If a later request lands on the same worker process before that state is properly reset, it can end up reusing data it was never supposed to see.

Neither bug is a classic SQL injection or file-upload vulnerability. Both are about PHP’s own internal bookkeeping going wrong under unusual-but-reachable conditions — which is exactly why they went undetected for so long and why they’re so dangerous: nothing about your application code is “insecure” here. The flaw is in the language runtime itself.

Who’s at Risk

Short answer: anyone serving PHP requests. That includes PHP-FPM, Apache’s mod_php, php-cgi, newer setups like FrankenPHP, and LiteSpeed. PHP’s own advisory flags mod_php as the highest-risk configuration, since an unauthenticated request can trigger the issue before your application code even runs. Embedded PHP in network appliances is affected too.

This isn’t a “some obscure plugin” problem. If your server is running an unpatched PHP version and accepting web requests, you’re exposed — regardless of what CMS or framework sits on top.

Is This Being Exploited Right Now?

PHP’s advisory describes “a demonstrated exploit.” CERT-EU has gone further, stating that technical details are circulating publicly, that initial proof-of-concept code has begun to appear, and that attackers are likely already exploiting it in the wild. If you’re reading this and haven’t patched, treat it as urgent, not theoretical.

How to Check If You’re Affected

The fix landed in PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. If you’re on an earlier version within those branches, you’re vulnerable. PHP also published minimal backports for the older, unsupported 7.4, 8.0, and 8.1 branches, given how widely deployed they still are.

On shared hosting such as Hostinger or GoDaddy, check your PHP version through your hosting control panel — usually under something like “PHP Configuration” or “Select PHP Version.” On a VPS or dedicated server, run php -v and compare that against the patched versions above.

How to Fix It

The real fix is simple: update PHP. There’s no clever workaround that replaces this — PHP themselves say so directly.

If you genuinely can’t patch immediately, the advisories list stopgap mitigations. For CVE-2026-109618: set memory_limit to -1 via php_admin_value, keep post_max_size reasonable, and enforce request size limits at your reverse proxy or web server layer as a second line of defense. For CVE-2026-109619: disable session.upload_progress by setting session.upload_progress.enabled=0 in php.ini or your FPM pool config, then restart your PHP workers so the change actually takes effect.

CERT-EU’s broader advice: if you can’t patch quickly, seriously consider isolating the affected application from the internet until you can. None of these mitigations are a substitute for updating — they buy you time, nothing more.

The Bigger Lesson

For anyone studying vulnerability management or SOC work, this one’s worth sitting with. It’s a good reminder that “critical RCE” doesn’t always mean a sloppy input-validation mistake in someone’s application code. Sometimes it’s a subtle interaction deep inside the runtime everyone trusts by default — memory limit enforcement, worker process reuse, cleanup logic — the kind of thing that’s invisible until someone finds it. That’s exactly why patch management discipline matters even when nothing in your own codebase changed: the ground underneath your application moved, and attackers found out before most defenders did.

If you manage any PHP-based site — WordPress, custom apps, anything — check your version today. This isn’t a “patch it next sprint” situation.

Sources: PHP.net security advisory archive, CERT-EU Security Advisory 2026-018, NCSC-NL php2shell tracking repository.

Leave a Reply

Your email address will not be published. Required fields are marked *