# PHP2Shell: Two Critical PHP Flaws Every WordPress Site Owner Needs to Patch Now

- Link: https://www.limitloginattempts.com/blogs/cyber-security/php2shell-critical-php-vulnerabilities-wordpress/
- Published: 2026-10-22T19:10:29+00:00
- Author: Greg Fisher

On October 21, 2026, the PHP development team shipped an emergency security release
fixing two critical vulnerabilities in PHP itself: **CVE-2026-109618** and **CVE-
2026-109619**, now widely referred to as “PHP2Shell.” Both are rated 9.2 out of 
10, and both can let an attacker run their own code on your server using a specially
crafted web request, with no username, password or account required.

Because WordPress runs on PHP, this affects every WordPress site on an unpatched
version of PHP, no matter which theme or plugins it uses. It isn’t a WordPress bug
or a plugin bug. It sits one layer below all of that, on the server.

## Why this one skips the front door

Most of what we write about on this blog is login security: brute-force attacks,
credential stuffing, stolen passwords. Those attacks all have one thing in common.
They go through your login page, which is exactly where tools like Limit Login Attempts
Reloaded stand guard.

PHP2Shell is different. It never touches the login page. An attacker doesn’t need
to guess a password because they don’t need to log in at all. That means no login
protection, firewall rule set or security plugin can fully close this hole for you.**
The only real fix is updating PHP.** The PHP team has said plainly that there is
no complete workaround and that updating is the only safe option.

## Is your site affected?

Your site is exposed if it runs any PHP version older than the patched releases 
below. Note that the exact version number matters, not just the branch. “PHP 8.3”
isn’t enough to know; you need 8.3.36 or newer.

| If you run PHP… | You need at least… | 
| 8.5.x | 8.5.12 | 
| 8.4.x | 8.4.27 | 
| 8.3.x | 8.3.36 | 
| 8.2.x | 8.2.35 | 
| 8.1 or older | Upgrade to a supported branch (8.2 or newer). Older branches no longer receive security fixes. |

**How to check your PHP version in WordPress:** go to _Tools → Site Health → Info_
and open the _Server_ section. The full PHP version is listed there. If you manage
several sites, check each one; hosting accounts often run different PHP versions
per site.

## What to do today

 1. **Take a full backup.** Files and database, stored somewhere off the server. A 
    PHP update is usually painless, but you want a way back if something breaks.
 2. **Get PHP patched.** On managed WordPress hosting, your host may already be rolling
    this out. Don’t assume; open a ticket or check their status page and confirm the
    exact version your site is now running. On a VPS or your own server, update PHP
    through your package manager and restart PHP-FPM or your web server so the new 
    version actually loads.
 3. **Update WordPress, themes and plugins.** Running current versions of everything
    keeps your site compatible with the updated PHP and closes any other known holes
    while you’re at it.
 4. **Re-check Site Health.** Confirm the new PHP version is showing and the site loads
    normally.
 5. **Look for signs of compromise.** If your site ran an unpatched version after the
    disclosure, take a few minutes to review it: admin accounts you don’t recognize,
    recently modified core or plugin files, unfamiliar files in your uploads folder,
    or unexpected redirects. If anything looks off, restore from a clean backup taken
    before the issue and change all passwords and keys.

Some hosting providers are also applying temporary PHP configuration changes to 
make the attack harder while they roll out patches. Those are a useful stopgap, 
but they are not a fix. Make sure the patched version is actually installed.

## Where login security fits in

We want to be clear: Limit Login Attempts Reloaded does not protect against PHP2Shell,
and no login security tool can. Patching PHP is the job here.

But headline vulnerabilities like this one are a good reminder that security works
in layers. A big disclosure tends to bring a wave of automated scanning and attacks
of every kind, and login attacks remain one of the most common ways WordPress sites
are broken into on an ordinary day. Once your server is patched, it’s worth making
sure the rest of your defenses are in place too:

 * **Limit failed login attempts** to stop brute-force and credential-stuffing attacks.
 * **Turn on multi-factor authentication** so a stolen password alone isn’t enough
   to get in.
 * **Protect your registration form** from spam and malicious signups.
 * **Keep PHP, WordPress, themes and plugins updated** on a regular schedule, not
   just when there’s a headline.
 * **Run a virus scanner** regular to check for new vulnerabilities.

## The bottom line

PHP2Shell is about as serious as server-side vulnerabilities get: no login required,
and it affects the software underneath nearly every WordPress site. Check your PHP
version today, update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or newer), and confirm
the update actually took. Then keep your login defenses strong for everything else.

_Official release notes: [PHP 8.5.12](https://github.com/php/php-src/releases/tag/php-8.5.12)·
[PHP 8.4.27](https://github.com/php/php-src/releases/tag/php-8.4.27)_
