161

Important update: PHP2Shell and your WordPress site

In short

  1. PHP2Shell is two critical flaws in PHP (CVE-2026-109618 and CVE-2026-109619). They let an attacker run code on a web server without a password.
  2. The fix is in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. PHP 8.1 and older get no fix at all.
  3. Attacks are already happening, and WordPress runs on PHP. Ask your host today which PHP version your site runs.

On 21 October 2026, PHP released emergency fixes for two critical flaws, known as PHP2Shell (CVE-2026-109618 and CVE-2026-109619). They let an attacker run code on a web server without logging in.

The details leaked a day early, before the fix was out. Attacks followed: the US cybersecurity agency CISA lists both flaws as exploited in the wild. In Europe, some government sites went offline as a precaution while they patched.

Which sites are at risk

WordPress runs on PHP. So does almost every WordPress site, from a small company page to a shop.

The fix is in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. A server on an older release of these versions needs an update from the host.

PHP 8.1 and older are past their end of life and get no fix at all. A site on one of them has to move to a supported version.

Updating WordPress or plugins does not help here. The hole is in PHP, which runs on the server under WordPress.

Until October an old PHP version was a slow risk. Now it is an open door, because the attack code is public.

What can happen to the site

  • Someone logs in to the admin without a password.
  • Pages change, or new pages appear that you never made.
  • Spam links show up in your content.
  • Files your visitors download are swapped for malware.

Then Google shows visitors a “dangerous site” warning, and the host can block the site until it is clean.

Is your site on WordPress or PHP? Let us fix it for you.

Send us the site address. We check the PHP version, move the site to a patched one and look for signs of a break-in. 3 business days, a fixed price.

Help me check my site

This is not theory

On 20 October we found pages titled “Hacked by” on the site of a former client. The site had been off our support for a long time. A few weeks later the owner replaced it with a placeholder.

On another site in 2025 we saw months of password-guessing attacks on the WordPress login.

What we did

In October and November we went through every PHP website we have built over the years: 20 clients, 23 domains. Some sites have since moved off WordPress, some are no longer online. Clients whose sites need it get an upgrade, and the first one is already in progress.

What to check on your own site

  1. Find the PHP version: in the WordPress admin open Tools, Site Health, Info, Server. Or ask your host whether the October fix is applied.
  2. Make sure you have a fresh backup of the files and the database, stored outside the server.
  3. Look at the list of admin users. Anyone you don't know is a warning sign.
  4. Open the sitemap (yoursite.com/wp-sitemap.xml) and look for pages you never created.
  5. Update plugins and the theme, and remove the ones you don't use.

Let us fix it for you

If your site runs on WordPress or PHP, our PHP Security Check & Upgrade covers all of it:

  • a full backup before we change anything;
  • a move to a supported PHP version, with a quick way back if something breaks;
  • a check of every page type, the forms, the uploads and the admin;
  • a check for signs of a break-in: changed files, unknown admin users, suspicious uploads;
  • a short written report: what we found and what we fixed.

3 business days, a fixed price, 12 months of guarantee on our work.

Send us the address of your site, and we will tell you if it is at risk.

Help me fix my site

FAQ

What is PHP2Shell?

PHP2Shell is the name for two critical flaws in PHP itself, CVE-2026-109618 and CVE-2026-109619, published on 21 October 2026. They let an attacker run their own code on a web server without logging in.

Is my WordPress site affected?

Yes, if the server runs a PHP version older than 8.2.35, 8.3.36, 8.4.27 or 8.5.12, or PHP 8.1 or older. The WordPress version does not matter here, because the flaw is in PHP.

Does updating WordPress or plugins fix PHP2Shell?

No. PHP runs on the server, under WordPress. Your host or your developer has to update PHP itself.

How do I see which PHP version my site runs?

In the WordPress admin, open Tools, then Site Health, then the Info tab, and look under Server. Or ask your host.

My host says the server is patched. Is that enough?

For PHP2Shell, yes, if the version is one of the fixed ones. It is still worth checking the site for signs of a break-in from before the fix: unknown admin users, new pages, changed files.

Sources

Rate this article
0 reviews
Comments
Be the first to
Rate this article
0 reviews
Comments
Be the first to

Recommended articles