October 27, 202613 min read

The PHP2Shell Security Flaw: Are You Affected, and What to Do Now

PHP2Shell (CVE-2026-109618 / CVE-2026-109619): two critical PHP flaws, CVSS 9.2, in CISA's KEV catalog since 26 Oct. Self-check, immediate checklist, sources. As of 27 Oct 2026.

Topics

As of: 27 October 2026

The PHP security flaw known as PHP2Shell affects practically every website running on PHP. If yours sits on WordPress, TYPO3, Drupal, Joomla, Magento or any other PHP system, the short answer is: yes, you were most likely affected. Patches have been available since 21 October 2026. Three things matter now: check your PHP version, get your host to confirm the update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, and then make sure the PHP processes were actually restarted. Without that restart the patch does not take effect. A WordPress or plugin update alone does not help, because the flaw sits in the PHP core and not in your application.


TL;DR, the essentials in 60 seconds

  • What happened: On 21 October 2026 the PHP project shipped emergency releases. Two flaws, CVE-2026-109618 and CVE-2026-109619, together called "PHP2Shell", allow code execution without authentication under certain conditions. Both are rated 9.2 out of 10 under CVSS 4.0 (php.net advisory).
  • Who is affected: Every PHP installation that serves web requests, meaning PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. Germany's BSI describes "all known PHP versions, going back to at least PHP 5" as vulnerable (BSI, 22 Oct 2026).
  • Why it is urgent: On 26 October, CISA added both CVEs to its KEV catalog, the list of vulnerabilities known to be exploited (Tenable FAQ).
  • Three immediate steps: 1. Check the PHP version. 2. Ask your host about the patch and get written confirmation that the worker processes were restarted. 3. Review admin accounts and file changes from the past two weeks.
  • No all-clear, but no reason to panic either: As of 22 October the BSI had "no confirmed reports of successfully compromised IT systems from the regulated economy or the federal administration".

Am I affected? The two-minute self-check

You need neither a developer nor the command line for this, just a single number: your PHP version.

Route 1, through WordPress. Log into the backend and go to Tools → Site Health → Info. Under the Server section you will find the PHP version, for example "8.2.28". Compare that number against the table below.

Route 2, through the hosting panel. With IONOS, Strato, All-Inkl, Mittwald, Hetzner or Plesk the PHP version sits in the domain or webspace configuration, usually under "PHP settings" or "PHP version". Most providers let you switch it there directly.

Your versionStatusWhat to do
8.5.12 or higherpatchedget the process restart confirmed
8.4.27 or higherpatchedget the process restart confirmed
8.3.36 or higherpatchedget the process restart confirmed
8.2.35 or higherpatched, but the branch expires end of 2026patch, then plan the move
8.1 or olderno official patchask your host whether a backport was applied
version not visibleunclearask your host in writing

One caveat on that last row. If you cannot find the version anywhere, that does not mean you are safe. The security firm Brandefense passively checked 30,027 websites between 21 and 25 October 2026 and could read a PHP version from the response headers for only about 12 percent of them. Of those 3,532 readable installations, 59 percent were still running a version below the fix (Brandefense, October 2026). The figure says nothing about the remaining 88 percent, since servers that hide their version are not in the sample. What it does show is how many operators had not patched five days after an emergency release.

For PHP 8.1 and older there is no official release from the PHP project. The PHP security team published backport patches for 7.4, 8.0 and 8.1, and Linux distributions such as Ubuntu, Debian and Red Hat ship their own patched packages. Whether your host applied one of them is not visible from the outside. You have to ask.

Citation capsule

The PHP2Shell flaws CVE-2026-109618 and CVE-2026-109619 were closed on 21 October 2026 with the releases PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Both are rated 9.2 under CVSS 4.0 and allow execution of foreign code without prior authentication. Germany's BSI classifies its warning at criticality 3 / Orange and describes all PHP versions back to at least PHP 5 as vulnerable (BSI cybersecurity warning, version 1.2 of 22 October 2026; php.net security advisory of 21 October 2026).


What to do today: the checklist

The order is deliberate. Steps 1 and 2 close the flaw, steps 3 to 5 establish whether someone already got through.

1. Contact your host and demand a specific answer. Do not ask "are we safe?". Ask: which PHP version has our webspace been running since when, and were the PHP workers restarted afterwards? Managed hosts mostly patched centrally on 21 or 22 October. On your own servers, VPS instances and Docker setups, nothing happens by itself.

2. Get the restart confirmed. This is the step that gets missed most often. A running PHP-FPM or mod_php process keeps working with the old code it already loaded, even when the package on disk has been updated. The PHP project's fix notes put it bluntly: "restart every worker". Without a restart you have a patched package and an unpatched server.

3. Review admin users. In WordPress go to Users → All Users and filter by the Administrator role. Any account you cannot account for, and any account added in the past two weeks, deserves scrutiny and removal if in doubt.

4. Look at files and logs. The BSI lists as general indicators newly created or modified PHP files in the web directory, unusual shells and child processes, download tools such as curl or wget started by the web server, and conspicuous multipart uploads followed by memory errors or HTTP 500 responses. Concrete indicators of compromise that would reliably prove exploitation do not exist, according to the BSI.

5. Secure a backup before you change anything. Download a complete backup of files and database and store it off the server. If it later turns out someone was inside, you need a state that predates the attack. Check how far your backup history reaches while you are at it. Many cheap plans keep only seven or fourteen days, and the first observed exploitation attempt is already ten days old.

One detail missing from most checklists: the 21 October releases introduced a bug of their own. PHP developers confirmed a regression in 8.4.27 and 8.5.12 that can crash processes in applications using the SimpleXML extension. The one-line fix is merged into the PHP source (php-src GH-24488) but as of 26 October had not shipped in any release, and lands with 8.4.28 and 8.5.13 (Tenable, 26 Oct 2026). If your site throws sporadic 500s after the update, that is one possible cause. It is not an argument against updating.


Why this keeps happening

The flaws are old. According to Calif.io's technical analysis, the earliest affected code path reaches back to PHP 5.4.0, which means autumn 2012. For fourteen years nobody found them. What changed is not the code but who is looking: Wiz Research, who reported the vulnerabilities, describe how current AI models substantially lowered the barrier to turning a long-standing bug into a working exploit. The BSI draws a sober conclusion and considers it possible that "due to the increased attention on PHP and the intensified use of AI models in vulnerability research, further security gaps will be discovered".

That is the real point, and it gets lost in the rush to update. What is new here is not the individual flaw, which sat untouched in the codebase through four major PHP versions, but the speed at which flaws that old are now being found.

A second effect shows up clearly in PHP2Shell. Amazon Threat Intelligence recorded an exploitation attempt in its MadPot honeypot network on 17 October, four days before public disclosure (AWS Security Blog, October 2026). The attempt came through an address belonging to a commercial anonymisation network. Amazon considers a threat actor likely but writes explicitly that it remains unclear how that actor obtained the details before the embargo lifted. The window in which you can calmly react after a disclosure is no longer large. Sometimes it opens before you know the flaw exists.

For you as an operator this boils down to two quantities: attack surface times reaction time. The attack surface is everything publicly reachable that executes code on request. A classic PHP stack consists of the PHP core, the web server, the CMS, the theme and often twenty to forty plugins. Each part has its own vendor, its own update rhythm and its own chance of carrying a flaw. Reaction time is the span from the patch to the moment it is genuinely active on your machine, restart included. On managed hosting that is hours. On a VPS some freelancer set up three years ago it is weeks, and nobody feels responsible.

The flaw is rarely the real problem. What decides it is who performs the restart at 11pm on your server.


The alternative: less surface instead of more patches

Here is the part where agencies usually stop being honest. So, up front: modern architecture does not make a website unassailable, and anyone promising you that is selling something.

At launchtime.studio we build on Next.js, hosted on Vercel, with Sanity as a headless CMS. In December 2025 that exact stack had a serious problem. Under the name React2Shell, two critical flaws in React Server Components and Next.js were published on 3 December 2025, CVE-2025-55182 and CVE-2025-66478, also code execution through a crafted HTTP request, also actively exploited within a day (Wiz Research, December 2025). Anyone claiming modern JavaScript is the safe counterpart to PHP missed the year 2025.

The difference lies elsewhere, and it is unspectacular.

With a statically or server-side rendered website on a managed platform there is no publicly reachable PHP process that you have to operate and restart yourself. The platform operator patches the runtime, not you. Dependencies such as React or Next.js sit as version numbers in a file inside the project, and an update is one changed line plus a deploy, not an SSH login to a server whose password nobody has any more. Content lives in a headless CMS that the vendor runs and secures. In December 2025 that meant, for us: version bump, deploy, done. No worker restarts, no ticket with the host, no phone call at 11pm.

The attack surface is smaller too, because fewer parts execute code in public. A PHP CMS with thirty plugins has thirty suppliers, all shipping security updates independently and at their own pace, any one of which can hand you a flaw. This is not a security promise, it is a reduction of the equation above: less surface, shorter reaction time.

Whether the move pays off for you depends on what your website does. If you run a shop with a thousand articles and years of accumulated Magento logic, a rebuild is a project, not a response to a CVE. If your site is essentially a homepage, a services page, references, a blog and a contact form, which describes most mid-market websites, then you are running a permanently live server infrastructure and everything attached to it for five static pages. In that case switching technology is the cheaper answer to the next flaw, and there will be a next one.

Which platform fits which project is something we broke down in Webflow vs. Next.js. What separates a professionally built website from a quickly assembled one is covered in getting a website built. And how long a clean rebuild realistically takes is shown in landing page built in 48 hours. How to keep your rankings when you switch is covered in our website relaunch checklist.


Frequently asked questions about the PHP2Shell security flaw

Is updating WordPress and all plugins enough?

No. The flaw sits in the PHP core, the runtime WordPress executes on. The BSI puts it plainly: the vulnerabilities affect "the PHP runtime itself and no specific applications. Updating the applications is therefore not sufficient." Plugin updates remain worthwhile, they just do not solve this problem.

How do I tell whether my site was attacked?

Not reliably, because concrete indicators of compromise do not exist according to the BSI. There are general signs: newly created admin accounts, modified or newly added PHP files in the web directory, web shells, unusual processes such as curl or wget started by the web server, and unusually large or malformed PHPSESSID cookies in responses. A concrete suspicion belongs with an incident response provider, not in a checklist.

My host says they patched. Am I done?

Almost. Ask whether the PHP workers were restarted after the update, because without a restart the old, already loaded code stays active in memory. Check the reported PHP version yourself under Site Health rather than relying on the answer alone.

I am on PHP 8.1 or older. What now?

The PHP project ships no official release for these versions. There are backport patches from the PHP security team and patched packages from Ubuntu, Debian and Red Hat, which your host may or may not have applied. Ask, and plan the move to a version that still receives security updates in parallel. Every version before 8.2 has reached end of life, and even 8.2 receives security updates only until the end of the year, as the BSI describes it.

Is there a workaround if I cannot patch right now?

The PHP advisory names hardening measures for both CVEs, among them session.upload_progress.enabled=0 and limits on memory_limit and post_max_size. They shrink the attack surface but do not close the flaw. The BSI writes: "Based on current knowledge, only patching or disconnecting from the internet offers complete protection against exploitation." Treat workarounds as a bridge for a few hours, not as a solution.

How urgent is switching technology, really?

Not today. Today the patch is what counts. The switch answers the question that lands on your desk again in six months, when the next critical flaw surfaces in some component of your stack. If the past few days cost you more time and nerves than your website is worth to you, that is a usable signal.


Conclusion

PHP2Shell is remarkable because the flaws are fourteen years old, because the first exploitation attempt landed in a honeypot four days before disclosure, and because the discovery explicitly involved AI assistance. None of those three is an exception. The BSI openly expects further PHP flaws to be found this way.

You still have to patch, and today. The question that remains afterwards is not whether your system is secure, but how many hours pass between the next patch and the moment it takes effect on your server. Few operators know that number. It decides more about your risk than any CVSS rating.


Request a switch

We review your website free of charge and plan the switch without losing rankings. In the call we look at what your current stack costs you in ongoing maintenance and what a move realistically involves.

Book a free call →

Sources

  1. PHP Project (21 Oct 2026): Security Advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618) and GHSA-6wmf-4rv5-p3rp (CVE-2026-109619). github.com/php/php-src

  2. BSI (version 1.2 of 22 Oct 2026): PHP: Kritische Schwachstellen bedrohen Webanwendungen weltweit, cybersecurity warning, criticality 3 / Orange. bsi.bund.de

  3. Tenable (26 Oct 2026): php2shell (CVE-2026-109618, CVE-2026-109619): Frequently Asked Questions. tenable.com

  4. CISA: Known Exploited Vulnerabilities Catalog, both CVEs added 26 Oct 2026. cisa.gov

  5. Amazon Threat Intelligence (October 2026): Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot. aws.amazon.com

  6. watchTowr (October 2026): PHP2Shell FAQ: CVE-2026-109618 & CVE-2026-109619 Fixes. watchtowr.com

  7. Brandefense (October 2026): PHP2Shell Checker, 59% Show a Pre-Fix PHP Version. brandefense.io

  8. Wiz Research (December 2025): React2Shell, CVE-2025-55182 in React Server Components and Next.js. wiz.io