PHP Critical Vulnerability October 2026: Update Now — Hackers Are Already Exploiting It

PHP critical vulnerability October 2026 update guide

Hackers did not wait for you to read the advisory. Within hours of the October 21, 2026 PHP security release, attack traffic was already hitting servers — and by October 26, the U.S. government had added both flaws to its Known Exploited Vulnerabilities catalog. If your site still runs an unpatched version of PHP, anyone on the internet can run code on your server without even logging in.

The flaws — CVE-2026-109618 and CVE-2026-109619, nicknamed PHP2Shell — both score 9.2 out of 10 on the CVSS severity scale. The fix is a single PHP update, but updating WordPress, your theme, or your plugins will not help: the bug lives in the PHP engine underneath all of it. This guide explains what happened, which versions are safe, and exactly how to update PHP on a WordPress site.

What Is the PHP Critical Vulnerability October 2026?

On October 21, 2026, the PHP project released emergency security updates fixing two critical flaws in PHP’s core request-handling code. Researchers from Wiz, Calif, and OpenAI’s Codex Security team found the flaws and reported them on August 24, 2026. Disclosure was planned for October 22, but the release went out a day early after the vulnerability details leaked online on October 20.

Both flaws allow unauthenticated remote code execution (RCE) — meaning an attacker needs no username, no password, and no user interaction. A single crafted web request can be enough to run code on the server as the PHP process, potentially exposing application data and credentials stored on that server.

  • CVE-2026-109618 — remote code execution through out-of-memory corruption. When a request pushes PHP past its memory limit, out-of-memory handling can interrupt request setup while internal data is only partly initialized, and cleanup code then treats that invalid state as valid — enabling code execution.
  • CVE-2026-109619 — remote code execution through stale global state. Request-owned internal state can survive in memory after being freed, and a later request on the same worker can use that stale state before initialization resets it — again enabling code execution.

Every PHP installation serving web requests is in scope, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, and LiteSpeed — essentially every standard WordPress hosting setup. Affected versions stretch all the way back to PHP 5.4, so code carrying these flaws has been sitting in the engine for more than a decade.

Which PHP Versions Are Safe?

The PHP project shipped patched releases for all four currently supported branches on October 21, 2026. Update to at least the minimum safe version for your branch:

Your PHP branch Minimum safe version Security support ends
PHP 8.5 8.5.12 December 31, 2029
PHP 8.4 8.4.27 December 31, 2028
PHP 8.3 8.3.36 December 31, 2027
PHP 8.2 8.2.35 December 31, 2026
PHP 8.1 or older No official release Already ended — upgrade required

Anything below the minimum safe version on a supported branch is vulnerable: PHP 8.3.35 and earlier are affected, while the PHP 8.3.36 security update closes both flaws. Note that PHP 8.2 loses security support on December 31, 2026, so if you are patching an 8.2 server this week, plan your next branch upgrade at the same time. PHP 8.1 and older get no official patched release, only source-only backports that most site owners cannot install — so the realistic fix there is a version upgrade.

Hackers Are Already Exploiting It — Don’t Wait

This is not a theoretical risk. Cloudflare reported attack traffic aimed at its customers before the patch even shipped, and security researchers reported exploitation attempts on October 21, the same day the fixes were released. On October 26, CISA added both CVEs to its Known Exploited Vulnerabilities catalog, ordering U.S. federal agencies to patch by October 29. Palo Alto Networks’ Unit 42 later reported PHP2Shell exploitation against internet-facing PAN-OS management interfaces.

Most sites were slow to react. In the first five days after the release, 59% of the sites checked by Brandefense’s free PHP2Shell checker were still running a pre-fix PHP version. Internet-wide scans counted more than 2.6 million internet-facing PHP hosts, with over 700,000 running PHP 7.3 or older and roughly 400,000 more on end-of-life 7.4, 8.0, and 8.1 branches. Every unpatched server is a target for automated mass scanning — and this is exactly the kind of flaw scanners look for. If your patching plan is still “sometime this week,” make it today, and review your wider cybersecurity strategies while you are at it.

Why Updating WordPress Won’t Save You

All affected setups are serious, but Apache servers running mod_php carry the highest practical risk. Researchers demonstrated unauthenticated remote code execution against mod_php before any application code runs, so your WordPress security plugins and theme protections never get a chance to act. PHP-FPM deployments are also exploitable: CVE-2026-109619 reaches code execution on both mod_php and FPM, though the FPM path depends on the running application performing a particular operation.

That is why “just update WordPress” is dangerously incomplete. WordPress updates run on top of PHP and cannot fix a flaw in the engine beneath them — and no WordPress update is required or planned for this issue, because the problem is not in WordPress at all. A zero-trust security model starts from exactly this assumption: never trust any layer by default, including the runtime your application sits on.

How to Check Your PHP Version and Update Your Site

On most hosting accounts, you do not update PHP yourself with a download. Your host installs and maintains PHP, and your control panel offers the versions the host has made available. Here is the process:

  1. Find your current PHP version. In WordPress, go to Tools, then Site Health, then Info, then Server. Many hosts also show it in cPanel or their dashboard.
  2. Check whether the patched release is available. On PHP 8.2, 8.3, 8.4, or 8.5, look for 8.2.35, 8.3.36, 8.4.27, or 8.5.12 in your host’s version selector. If it is not listed yet, ask your host when it will be available.
  3. Back up your site first, including the database, before switching versions.
  4. Switch to the patched version. Select the fixed release in your hosting panel and save; the change usually takes effect within seconds.
  5. Verify the change. Reload Site Health and confirm the new version number, then check your homepage and a few key pages as a logged-out visitor.
  6. Check compatibility warnings. If your site shows errors after the switch, a plugin or theme may be incompatible with the newer PHP version — update it first rather than rolling back to a vulnerable version.

If you manage your own server, update via your package manager, then restart your web server and PHP-FPM workers. If you need help, reach out through our services page or contact us — but do not delay the patch while waiting for a reply.

Temporary Mitigations If You Cannot Update Yet

Updating is the only complete fix — the PHP security team states plainly that there are no complete mitigations. But if your host has not published the patched release yet, these interim steps can reduce exposure. They are stopgaps, not substitutes:

  • Set memory_limit to -1, removing the memory limit one flaw abuses. Temporary only — an unlimited limit carries its own risks.
  • Disable session upload progress (session.upload_progress.enabled to 0) and restart your PHP workers. PHP’s advisory says this blocks the confirmed session path for CVE-2026-109619, though not other variants.
  • Restart PHP workers regularly so stale worker state does not linger across requests.
  • Use a web application firewall such as Cloudflare’s WAF rules for these CVEs. Cloudflare put its PHP2Shell rules live on October 21, on by default for every plan including Free. WAF rules block known attack patterns but cannot fix the flaw.

Apply these mitigations in combination, not one at a time, and reverse the temporary settings once you have updated. Treat every day you remain unpatched as a day of elevated risk.

What to Do If Your Site Runs PHP 8.1 or Older

This group is larger than many expect: scans found roughly 400,000 internet-facing hosts still running end-of-life PHP 7.4, 8.0, or 8.1, with no patched build coming from the PHP project. If that is your site, your plan is:

  1. Apply the interim mitigations above immediately, and put a WAF in front of the site if one is not already there.
  2. Plan a PHP upgrade now, not someday. Moving from 8.1 to 8.3 or 8.4 is a bigger change than a patch, so test on a staging copy first — most modern plugins and themes already support PHP 8.3.
  3. Use the upgrade as a performance win, too. Newer PHP is faster, so the upgrade usually improves load times. Our guides on how to speed up your WordPress site in 2026 and fixing render-blocking resources in WordPress cover PHP upgrades alongside caching and image optimization.

A small, rarely visited site is not safe: automated scanners probe every server they can reach, and an unauthenticated flaw is exactly what mass scanning looks for.

Update: A Third PHP Flaw Was Disclosed on October 23

On October 23, 2026, the PHP project published an informational advisory for CVE-2026-115560, a separate remote code execution issue. The October 21 releases (8.5.12, 8.4.27, 8.3.36, 8.2.35) do not fix this flaw, so patching PHP2Shell is step one, not the finish line. Watch for a follow-up PHP security release and apply it as soon as your host makes it available.

FAQ: PHP Critical Vulnerability October 2026

Which PHP versions are affected by the October 2026 vulnerability?
Every version below the patched releases is affected, going back to PHP 5.4: 8.2.0–8.2.34, 8.3.0–8.3.35, 8.4.0–8.4.26, 8.5.0–8.5.11, and all end-of-life branches (8.1 and older). The safe versions are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35, released October 21, 2026.

How do I check my PHP version on WordPress?
In your WordPress dashboard, go to Tools, then Site Health, then Info, then Server — your PHP version is listed there. Your hosting control panel (cPanel, or your host’s dashboard) also shows it, usually under a PHP version selector or server information page.

How do I update PHP on my WordPress site?
Back up your site first, then pick the patched release (8.5.12, 8.4.27, 8.3.36, or 8.2.35) in your hosting panel’s PHP version selector and save. The change usually takes effect within seconds. Then reload Site Health to confirm the new version and check your site as a logged-out visitor. If you manage your own server, update through your package manager and restart your web server and PHP-FPM workers.

Does this affect my WordPress site even if WordPress is up to date?
Yes. The flaws are in the PHP runtime underneath WordPress, so updating WordPress core, themes, and plugins does not remove them. Only updating the PHP version to a patched release fully fixes the issue — and on mod_php servers, the exploit can run before any WordPress code loads at all.

Conclusion: Update PHP Now — Before Hackers Find You First

The PHP critical vulnerability October 2026 is not theoretical. Two CVSS 9.2 flaws, unauthenticated remote code execution, public exploit details, confirmed attacks in the wild, and a CISA Known Exploited Vulnerabilities listing add up to one instruction: update PHP now. Check your version in Site Health, switch to 8.5.12, 8.4.27, 8.3.36, or 8.2.35 on your host, and verify the change took effect. On PHP 8.1 or older, start the upgrade plan today and apply the interim mitigations meanwhile — and keep an eye out for the follow-up fix for CVE-2026-115560.

For deeper technical detail, see the analyses from NetSPI and Bitsight, and the hosting-focused breakdown from mySites.guru. Then go update PHP — it is the single most important thing you can do for your site this week. If you would rather have an expert handle it, check out our WordPress security services or contact us for help.

Leave a Comment