What to do about PHP2Shell

Critical PHP flaws: attack attempts already reported

Is your PHP safe from PHP2Shell?

Two critical flaws in PHP itself could let an attacker take over a web server with a single request. Enter your PHP version for a straight answer, then follow the steps for your situation. There are ready-to-send emails for your host and your clients.

Use the full number, with all three parts. Don't know it? How to find your PHP version. Nothing you type leaves your browser.

What PHP2Shell is

PHP2Shell is the name for two critical vulnerabilities in the PHP language, CVE-2026-109618 and CVE-2026-109619. PHP runs WordPress, WooCommerce, Joomla, Drupal, Magento and most shared hosting, so a very large share of the web is affected.

Both flaws come from how PHP cleans up when a request is cut short, for example by running out of memory or hitting a fatal error. PHP can leave memory in a broken state, and a crafted request can turn that into running the attacker's own code on your server. Both are rated 9.2 out of 10.

The flaw is in PHP, not in your website. Updating WordPress, your theme or your plugins does not fix it. The PHP on the server has to be updated, which on most hosting means your host has to do it.

Disclosed and patched
21 October 2026
Login needed to attack
None
Versions affected
PHP 5.4 onwards, every way of running PHP on a web server
Attacks
Attempts reported by Cloudflare, Amazon and watchTowr, some before the flaws were public. CISA hadn't confirmed exploitation as of 21 October.

Which PHP versions are fixed

PHP versionFixed inWhat to do
8.58.5.12Update to 8.5.12 or later
8.48.4.27Update to 8.4.27 or later
8.38.3.36Update to 8.3.36 or later
8.28.2.35Update to 8.2.35 or later
8.1, 8.0, 7.4No official releaseEnd of life. Source patches exist, so ask your host if they've applied one. Otherwise move to 8.2 or newer.
7.3 and older, PHP 5No fixUpgrade to a supported version

Linux distributions (Ubuntu, Debian, Red Hat and others) and hosting vendors often add the fix without changing the main version number. If your version has extra text after it, like 8.1.2-1ubuntu2.19, see checking vendor builds.

Who's giving advice

This guide follows the official advisories below. Where they differ on detail, we go with the PHP project's own figures.

Government agencies

PHP itself

Security companies and researchers

Distribution and hosting-panel notices (Ubuntu, Debian, Red Hat, cPanel, Plesk and others) are on the sources page.

Questions

Do I need to do anything if my host manages everything?

Yes: check, don't assume. Find your PHP version and compare it with the table above. If it's not fixed, ask your host when it will be. Our hosting guide has an email you can send.

Does Cloudflare protect me?

If your site's traffic goes through Cloudflare's proxy (the orange cloud), its emergency rules block known PHP2Shell attacks on every plan, including free. That helps a lot while you wait for a patch, but new attack methods appear over time, and only a PHP update fixes the flaw.

Can you check my site from the outside instead?

Partly. Our outside look-up reads what your site reveals to visitors. Most well-run sites hide their PHP version, so it often can't give a verdict. Your actual version number, from your hosting panel or WordPress, is the reliable way.

Is my information stored when I check a version?

No. The version check runs entirely in your browser and nothing is sent to us.

Need help with your WordPress site?

WP Care looks after WordPress sites in Ireland. We can find out which PHP your site runs, work with your host to get it updated, and check for signs that anyone got in.

Talk to WP Care

Small site? You may not need PHP at all

If your site is a few pages about your business, it may not need WordPress or PHP. AISites.ie can rebuild it quickly with AI as a simple, fast site, with no PHP to patch next time.

See AISites.ie