Security

Critical PHP flaws put millions of websites at risk

Two flaws rated 9.2 let an attacker run code on an unpatched server without logging in. If your site runs WordPress or WooCommerce, this affects you. Here is what to do now.

TJTeamJUH Security Desk22 October 2026 · 3 min read
Critical PHP flaws put millions of websites at risk: a monitor showing PHP code, cracked servers and a hooded attacker, with the steps update PHP, patch server, secure website

On 21 October 2026, the PHP team released an emergency security update for two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, now known as “PHP2Shell”. Security researchers are calling them some of the most severe flaws ever found in PHP, the language behind WordPress, WooCommerce, Magento and much of the web.

What happened?

Both flaws are rated 9.2 (Critical) and allow an attacker to run code on a web server without logging in. In plain terms, a hacker could take control of an unpatched website remotely.

Details leaked a day before the official fix, and Cloudflare reported attacks on the morning of 21 October, hours before patches were available.

Who is affected?

Every PHP installation that serves web requests is at risk, regardless of setup: PHP-FPM, Apache, LiteSpeed, FrankenPHP or CGI. If your website runs on WordPress or WooCommerce, this affects you.

How to protect your website

Update PHP immediately to one of the patched versions:

BranchPatched version
PHP 8.58.5.12
PHP 8.48.4.27
PHP 8.38.3.36
PHP 8.28.2.35
  • On PHP 8.1 or older? These versions are no longer officially supported, though emergency backports exist for 7.4, 8.0 and 8.1. Upgrading to a supported version is the safest path.
  • Check with your hosting provider to confirm your server has been patched. Many hosts are rolling out fixes in stages.
  • Look for signs of compromise, especially if your site was online before patching.

Check your version in one command

php -v

On shared hosting, the PHP version is in your control panel — and the version your site actually uses can differ from the one on the command line, so check both.

Signs of compromise

Patching closes the door. It does not undo an attack that already happened. Check for:

  • Unknown administrator users, or an existing account whose email address changed.
  • Unfamiliar files, especially recently modified PHP files in the web root, wp-content/mu-plugins or theme folders.
  • Unexpected redirects, or content that appears only to search engines and not to visitors.
  • Scheduled tasks and outbound requests you did not set up.

If anything on that list looks familiar, our write-up on how a nulled plugin hid a backdoor for 15 months walks through exactly how we hunt this down, with the commands we use.

Not sure if your site is safe?

TeamJUH has been building and securing WordPress and PHP websites since 2017. We are already patching our clients' sites, and we can check, update and secure yours too.

Contact TeamJUH for a free security check.

PHPWordPress securityPatching
TJ
Written by TeamJUH

We build the technology behind our clients' next stage of growth — AI integrations, custom web apps and high-performance websites — for businesses around the world.

Still on an unpatched PHP version?

We update PHP without breaking your site, then check for anything that got in first.

Book a free security check

Keep reading.

A nulled Elementor Pro listing in the WordPress plugins screen, with a hooded figure stepping through an open door behind it

Security

The free plugin that cost us 15 months

A nulled Elementor Pro hid a web shell across our WordPress sites. How we found it, and what we check now.

October 2026

Growth

5 signs your business website is hurting your growth

Slow pages, confusing layouts and broken forms quietly cost you customers. What to fix first.

April 2026

Maintenance

Monthly webmaster plans

Updates, verified backups and monitoring, so the problems in these posts never start.

Service