Quick answer: The October 2026 PHP vulnerability is fixed by updating PHP on your server, not WordPress. Check your PHP version in Tools → Site Health → Info → Server, update to the latest patched release in your hosting panel, then fix any PHP 8 plugin or theme errors that appear after the switch.
Since 21 October, my WhatsApp has been busy. Clients are messaging me the same question: “WordPress has no update, so am I safe?” The short answer is no.
This is the PHP vulnerability WordPress site owners need to take seriously right now. The problem is not in WordPress, your theme or your plugins. It is in PHP, the language your server uses to run WordPress.
So the fix has to happen on your server, not in your dashboard. I’m Muhammad Talha, a WordPress developer in Lahore, and in this post I’ll show you the exact steps I’m following for my own clients.
Facts as of 22 October 2026 — hosting status changes fast, confirm with your host.

What Happened? The October 2026 PHP Vulnerability Explained Simply
On 21 October 2026, the PHP project released a security fix for two critical vulnerabilities. The PHP Foundation rates both of them CVSS 9.2.
You may have seen a score of 10.0 shared online. That number came from the leak, and it is wrong. The official score is 9.2, which is still critical.
The two CVEs in plain English
- CVE-2026-109618: remote code execution through out-of-memory corruption. In simple words, a memory problem inside PHP can be abused so an attacker runs their own code.
- CVE-2026-109619: remote code execution through stale internal state (a “use-after-free”) after a fatal error. In simple words, after PHP crashes on an error, leftover data in memory can be abused to run an attacker’s code.
Both flaws can allow unauthenticated remote code execution. That means an attacker could run their own code on your server without logging in. No password, no admin account needed.
The patched versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Every earlier version is affected.
Who is at risk (mod_php vs FPM/LiteSpeed)
Every WordPress site on an unpatched PHP version is affected. But the way your server runs PHP changes how exposed you are.
The highest risk is Apache with mod_php. In that setup, the attack can trigger before WordPress even loads. So a security plugin inside WordPress can’t stop it, because the attack happens first.
PHP-FPM, LiteSpeed, CGI and FrankenPHP setups are also affected and must be patched too. Don’t assume you’re fine just because you’re not on mod_php.
Most site owners I work with have no idea which setup their host uses. That’s okay. You don’t need to know. You only need your host to confirm that your PHP is patched.
Why the leak made it worse
Details of these bugs leaked before the patch was released. That’s why this one feels more urgent than a normal security update.
Here is where things stand. The PHP Foundation said it had not identified functional exploits at release time. Cloudflare reported attack attempts on the morning of 21 October.
So there’s no need to panic, but there’s no reason to wait either.
Why Updating WordPress Won’t Fix This PHP Vulnerability
WordPress.org said “no WordPress update is required or planned.” Many people read that as “WordPress is safe.” That’s not what it means.
It means the bug is not in WordPress code, so there is nothing for WordPress to fix. The flaw is in PHP itself, the engine that sits underneath WordPress.
Think of your website as a car. WordPress, your theme and your plugins are the body, the seats and the paint. PHP is the engine. Right now, the engine has a fault.
You can repaint the car or change the seats as many times as you like. The engine problem will still be there. In the same way, updating WordPress does not fix this. Only a PHP update on the server does.
How to Check Your PHP Version in WordPress
You can check this yourself in a few clicks:
- Log in to your WordPress dashboard.
- Go to Tools → Site Health.
- Click the Info tab.
- Open the Server section and find the PHP version line.
Write that number down. You’ll need it when you talk to your host.
Now the tricky part: the version number alone can be misleading. Linux distro packages may include the fix without changing the visible version number.
So a number lower than the patched version doesn’t always mean you’re unpatched. And you can’t be sure you’re safe from the number alone either. Ask your host to confirm.
Latest PHP Version for WordPress: Which One to Pick
Find your branch (the first two numbers of your PHP version) in this table:
| Branch | Patched version | Status |
|---|---|---|
| PHP 8.5 | 8.5.12 | Patch now |
| PHP 8.4 | 8.4.27 | Patch now |
| PHP 8.3 | 8.3.36 | Patch now |
| PHP 8.2 | 8.2.35 | Patch now |
| PHP 8.1 and older | No official fix | Upgrade to 8.2+ |
PHP 8.1 and older get no official fix. If you’re on one of these, you need to upgrade, unless your host or vendor has backported the fix. Ask them directly.
For most WordPress sites, I recommend PHP 8.3 or 8.4. Always test on a staging site first, because an old plugin or theme can break on a newer PHP version.
How to Update PHP Version (Hostinger, cPanel, VPS)
Hostinger
In hPanel, go to Websites → Advanced → PHP Configuration. Pick PHP 8.3 or 8.4 and save.
Then open live chat and ask: “Is my site running the patched PHP build for CVE-2026-109618 and CVE-2026-109619?” Don’t rely on the dropdown alone.
cPanel / GoDaddy
In cPanel, open Select PHP Version or MultiPHP Manager. Choose your domain, pick PHP 8.3 or 8.4, and apply.
After that, contact support and ask them to confirm the security patch is installed. That’s how you update your PHP version for WordPress in cPanel without guessing.
VPS / self-managed server
If you manage your own server, update your PHP packages through your package manager. Then restart PHP-FPM or Apache so the patched PHP actually loads.
If you can’t patch a self-managed site quickly, WordPress.org and the UK NCSC suggest taking it offline until it’s patched. It’s a hard call for a business site, but it’s safer than leaving it open.
Before you switch PHP versions
- Full backup: files and database, with a copy stored off the server.
- Staging test: switch PHP on a staging copy first and click through your key pages, forms and checkout.
- Compatibility check: make sure your plugins and theme support the new version. Old or abandoned plugins are usually the ones that break.
This is exactly how I do it on client sites. Staging first, test, then live. It sounds slow, but it’s much faster than fixing a broken shop on a busy day.
Can’t Patch Today? Temporary Protection
If your host hasn’t patched yet, or you need time to test, these steps reduce risk while you wait.
1. Turn off session upload progress
Add this line to your php.ini file, then restart PHP:
session.upload_progress.enabled = 0
This blocks one attack path for CVE-2026-109619. WordPress doesn’t use this feature, so your site won’t notice the change. On shared hosting, ask your host to set it for you.
2. Follow the php.net guidance for CVE-2026-109618
For the memory bug, follow the memory and upload limit guidance in the official php.net announcement. Don’t copy random values from forums. Use what the PHP team recommends.
3. Put Cloudflare WAF in Block mode
If your site is on Cloudflare, it has deployed WAF rules for this on all plans, including free. On Pro, Business or Enterprise, check that Managed Rules are set to Block, not Log. Log only records an attack; it doesn’t stop it.
⚠️ Important: these steps are not a fix. They reduce risk and buy you time. Cloudflare is an extra layer, not the fix. The only real fix is a patched PHP version.
WordPress PHP 8 Issues: Common Errors and Fixes
Moving to PHP 8 is the right call for security and speed, but older sites sometimes break. In my experience the problem is almost never WordPress core. It’s an outdated plugin or theme that uses code PHP 8 no longer accepts.
- Deprecated notices (lines starting with “Deprecated:”) are warnings that something will stop working in a future version. They don’t break the site on their own, but visitors shouldn’t see them.
- Fatal errors such as “Call to undefined function” or “Uncaught TypeError” mean an old plugin or theme uses code that PHP 8 removed or treats differently. This is what causes a white screen or the “There has been a critical error on this website” message.
- A broken page builder, form or slider after the switch is usually an outdated add-on, not the builder itself.
How I handle it:
- Take a full backup.
- Update WordPress, every plugin and the theme first, then switch PHP.
- If you can, test the new PHP version on a staging copy.
- If the live site breaks, switch back to the previous PHP version in your hosting panel to restore it, then find the real error (see below).
- Replace plugins that haven’t been updated in years with maintained alternatives.
“Your Server Is Running PHP Version X but WordPress Requires at Least Y”: How to Fix It
This message appears when your hosting runs an older PHP version than the WordPress version you’re installing or updating to requires. A common example: “Your server is running PHP version 5.6.40 but WordPress 6.3.1 requires at least 7.0.0.” WordPress blocks the update to protect the site, so you stay stuck on an old, unpatched version.
The fix is on the hosting side. Follow the steps in “How to Update PHP Version” above. On DirectAdmin hosting, look for “Select PHP Version” or the PHP settings for your domain (the exact name depends on your host). Choose a currently supported PHP 8 version, then run the WordPress update again. If your host doesn’t offer a supported PHP version at all, it’s time to move hosting.
How to Find the Real WordPress PHP Error
A white screen or a “critical error” message hides the actual problem. Three ways to see it:
- Check your email. WordPress sends the admin a “Your Site is Experiencing a Technical Issue” email naming the plugin or theme that failed, with a recovery-mode link.
- Turn on the debug log. In
wp-config.php, setWP_DEBUGandWP_DEBUG_LOGto true andWP_DEBUG_DISPLAYto false. Errors are then written towp-content/debug.loginstead of being shown to visitors. Turn it off again when you’re done. - Check your host’s error log. Most hosting panels have an error log that shows PHP fatal errors with the file and line number.
Site Health (Tools → Site Health → Info → Server) also shows which PHP version your site is actually running.
Your PHP Security Checklist
- ✅ Check your PHP version in Tools → Site Health → Info → Server.
- ✅ Ask your host to confirm the patch for CVE-2026-109618 and CVE-2026-109619 in writing.
- ✅ Update to a patched version, or upgrade from 8.1 or older to 8.3 or 8.4.
- ✅ Restart PHP (PHP-FPM or Apache) after updating.
- ✅ Set Cloudflare Managed Rules to Block, not Log.
- ✅ Take a full backup before you change anything.
- ✅ Scan your site for anything suspicious added since 21 October, like new admin users or unknown files. My guide on how to find and remove hidden malware walks you through it.
When to Get Professional Help
Some site owners are happy to do all of this themselves. Many aren’t, and that’s fine. This is server work, and one wrong step can take a site down.
Since 21 Oct I’ve been checking PHP versions and patch status for every client site I manage, and pushing hosts for written confirmation. Some hosts answer fast. Others need a few follow-ups.
My WordPress security service covers malware cleanup, backdoor removal, hardening and monitoring. I also handle the PHP upgrade and the staging test, so nothing breaks when the version changes.
If you think your site may already be compromised, start with my guide on how to check if your WordPress site is hacked.
FAQs
Is WordPress itself vulnerable to the October 2026 PHP vulnerability?
No. The flaw is in PHP, not in WordPress, plugins or themes. But every WordPress site runs on PHP, so your site is at risk until your server’s PHP is patched.
Will a WordPress or plugin update fix this PHP vulnerability?
No. WordPress.org said “no WordPress update is required or planned.” The fix is a PHP update on your server, done by you or your host.
What is the latest safe PHP version for WordPress?
The patched versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. For most WordPress sites, I recommend 8.3 or 8.4. PHP 8.1 and older get no official fix, so upgrade.
My host shows PHP 8.3 — am I patched?
Not necessarily. You need 8.3.36, or a host build with the fix backported. Linux distro packages may include the fix without changing the visible version number, so ask your host to confirm.
Is WordPress compatible with PHP 8?
Yes. Current WordPress versions run on PHP 8. Problems after switching usually come from outdated plugins or themes, so update everything first and keep a backup.
Why does WordPress say my server is running an old PHP version?
Your host is running an older PHP version than the minimum the new WordPress version needs. Change the PHP version in your hosting panel, then run the update again.
Conclusion: Patch PHP, Not WordPress
This PHP vulnerability sits in the engine under WordPress, not in WordPress itself. That’s why your dashboard shows no update, and why you still need to act.
Check your PHP version today, get written confirmation from your host, and upgrade if you’re on 8.1 or older. Use the temporary steps only to buy time.
For the technical details, read the CERT-EU security advisory. And if you’d rather have someone handle it, message me. I’ll check your PHP version, confirm the patch with your host and secure your site.

