Quick Answer
The latest PHP security update fixes two critical flaws, CVE-2026-109618 and CVE-2026-109619, nicknamed “PHP2Shell”. Both let an attacker run code on your web server without logging in, and attackers are already exploiting them. The fix is to update PHP, not WordPress or your plugins.
The patched versions, released on 21 October 2026, are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. If your site runs anything older, it is exposed.
What to do today:
- Find out which PHP version your website runs (your hosting panel will show it).
- If it is below the patched version for its branch, update PHP or ask your host to do it now.
- If you are on PHP 8.1 or older, there is no official patch. Move to PHP 8.4 or 8.5.
- Ask your host to confirm in writing that PHP has been patched and restarted.
What Are the 2026 PHP Vulnerabilities (PHP2Shell)?
PHP2Shell is the name given to two remote code execution flaws in PHP itself, the language that powers WordPress, Magento, Drupal, Joomla and most custom-built websites. Each is rated 9.2 out of 10 on the CVSS v4.0 scale. Source: watchTowr
In plain terms, an attacker can send a specially crafted request to a vulnerable server and make it run their own code. No password or login is needed.
- CVE-2026-109618: triggered when PHP runs out of memory partway through setting up a request, leaving half-built data behind that PHP’s cleanup code then trusts.
- CVE-2026-109619: caused by internal state that outlives the memory it points to, so the next request handled by the same PHP worker can act on leftover data.
The flaws sit below your website’s own code. That is why a fully updated WordPress site on an unpatched server is still at risk.
Timeline: how fast this moved
| Date (2026) | What happened |
|---|---|
| 17 October | Amazon Threat Intelligence says first exploitation attempts began, four days before patches (BleepingComputer) |
| 20 October | Details leaked online ahead of the planned 22 October disclosure; PHP announced an emergency release |
| 21 October | PHP released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 at about 14:00 UTC |
| 26 October | CISA added CVE-2026-109618 to its Known Exploited Vulnerabilities catalog |
Timeline per watchTowr’s vulnerability FAQ, which also reports exploitation seen in the wild from 21 October. Early attack volume is high, but no mass compromise has been confirmed publicly at the time of writing.
Which PHP Versions Are Affected?
Every PHP installation that serves web requests is in scope, whether it runs as PHP-FPM, Apache mod_php, php-cgi or LiteSpeed. PHP considers the risk highest for Apache mod_php. Source: watch Towr
| Your PHP branch | Vulnerable if below | Fixed version | Support status |
|---|---|---|---|
| 8.5 | 8.5.12 | 8.5.12 | Active support to 31 Dec 2027 |
| 8.4 | 8.4.27 | 8.4.27 | Active support to 31 Dec 2026 |
| 8.3 | 8.3.36 | 8.3.36 | Security fixes only, to 31 Dec 2027 |
| 8.2 | 8.2.35 | 8.2.35 | Security fixes only, ends 31 Dec 2026 |
| 8.1 and older | All versions | No official patch | End of life |
Support dates come from the official PHP supported versions page. Note that “PHP 8.3” is not enough information: 8.3.35 is vulnerable and 8.3.36 is fixed.
Some hosts patch the underlying package without changing the version number shown, which is common on Linux distributions. If your version looks too low, ask your host whether the fix has been backported.
Is Your Website Affected? WordPress, Magento, Shopify and Custom PHP Sites
If your site runs on PHP and your server is not patched, yes. Your PHP version decides your exposure, not your CMS version.
- WordPress: WordPress core and plugin updates do not fix this, because the flaw is in PHP, not WordPress. WordPress.org has said no WordPress update is planned for it. Self-hosted sites need a patched PHP build. WordPress guidance summary
- WordPress on managed hosting: Hosts such as WordPress.com and Kinsta patched at server level, so you may need to do nothing. Confirm with your provider rather than assuming. Kinsta’s statement
- Magento, Drupal, Joomla and custom PHP apps: all run on PHP, so all depend on the server being patched. Researchers at Wiz demonstrated unauthenticated code execution against WordPress, Drupal and Joomla. Recorded Future
- Shopify, Webflow and HubSpot: these hosted platforms say they are not built on PHP, so the platform vendor carries the patching. Any custom PHP you run elsewhere (a separate blog, a landing-page server) is still your responsibility.
If your site is on shared hosting, your host installs the update. On a VPS or dedicated server, you or your developer must do it.
If you run a Magento store or a bespoke PHP application, see our PHP web development and Magento web development services.
How to Check Your PHP Version and Fix the Vulnerability
PHP’s own advisory states that no configuration change fully mitigates these flaws, so updating is the only safe fix. Source: watchTowr Work through these steps in order:
- Find your PHP version. In cPanel, Plesk or your host’s dashboard, look for “PHP version” or “MultiPHP Manager”. WordPress users can open Tools > Site Health > Info > Server and read the PHP line.
- Compare it to the fixed versions. You need 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or newer on the same branch), or a vendor package with the fix backported.
- Update PHP. Switch to the latest available version on your branch in the hosting panel. On your own server, install your distribution’s patched PHP package or the official release.
- Restart PHP. Every PHP worker must be restarted so the fix takes effect. Updating without restarting leaves the old code running.
- Get written confirmation from your host. Ask: “Have you patched PHP2Shell (CVE-2026-109618 and CVE-2026-109619) on my plan, and have all workers been restarted?”
- Test your site. Check forms, checkout, logins and any plugins after the update. A short staging test avoids surprises, especially if you are jumping branches.
If you cannot update immediately, restrict public access to the affected server where possible. As a partial stopgap only, one security vendor notes that disabling session.upload_progress.enabled blocks one demonstrated attack path for CVE-2026-109619 and does nothing for CVE-2026-109618. Tanium Treat it as a delay, not a fix.
Not comfortable doing this yourself? Our website maintenance team can check and update PHP for you.
What If You Run PHP 8.1 or Older? The 8.2 Deadline Matters Too
PHP 8.1 reached end of life on 31 December 2025, and everything older ended earlier. These versions get no official fix for PHP2Shell, yet they are affected. watchTowr confirms that even PHP 5 is vulnerable.
Your options, from best to worst:
- Upgrade to PHP 8.4 or 8.5. This is the real fix. PHP 8.5 has security support until 31 December 2029; 8.4 until 31 December 2028.
- Use a vendor-supported package. Some Linux distributions and extended-support vendors patch older PHP for a fee. This buys time but is not a long-term plan.
- Restrict public access to any server you cannot upgrade yet, and put a firewall in front of it.
PHP 8.2 is patched today (8.2.35) but loses all security support on 31 December 2026, about nine weeks from now. If you are on 8.2, plan the move to 8.4 or 8.5 now rather than in January.
Before upgrading, test your theme, plugins and any custom code on a staging copy. Older plugins are the most common cause of breakage when jumping several PHP versions. Our WordPress website development team handles these upgrades routinely.
Signs Your Website May Already Be Compromised
Because exploitation began before patches existed, patching alone does not tell you whether someone got in first. Check for these warning signs:
- PHP workers crashing or restarting for no clear reason, which security researchers list as a signal of exploit attempts (Prophet Security).
- Unfamiliar PHP files in uploads, cache or theme folders.
- New admin users you did not create.
- Sudden spikes in server load, outgoing traffic or hosting resource warnings.
- Spam pages, strange redirects or pharma and casino links appearing on your site.
- Google Search Console security warnings, or browsers flagging your site as unsafe.
If you find any of these, take a backup for evidence, change all passwords and keys, and bring in a professional to clean the site. A hacked site can also lose search rankings, so it is worth acting fast. Our recent note on Google’s September 2026 spam update explains why injected spam content is so damaging to visibility.
Keeping a PHP Website Secure Beyond This Update
PHP2Shell will not be the last critical PHP flaw. These habits reduce your risk the next time one lands:
- Know your PHP version. Check it at least quarterly and note the end-of-life date on the PHP supported versions page.
- Choose a host that patches fast. Ask how quickly they apply emergency PHP fixes and whether they publish status updates.
- Keep everything else current. WordPress core, themes and plugins still need regular updates; they are a separate risk from PHP itself.
- Remove what you do not use. Delete unused plugins, themes and old staging sites.
- Back up off-server. Keep tested, recent backups stored away from the web server.
- Use a web application firewall. A WAF will not replace patching, but it can block known attack patterns while you update.
- Restrict logins. Use strong passwords, two-factor authentication and limited admin accounts.
Built-in maintenance is cheaper than clean-up. A managed website maintenance plan covers updates, backups and monitoring so security fixes do not wait on someone remembering.
How Salt Marketing Can Help Secure Your Website
Salt Marketing is a Dublin-based digital agency that builds, maintains and markets websites for Irish businesses. If PHP2Shell has left you unsure where your site stands, we can help in a few practical ways:
- Website maintenance: PHP version checks, updates, backups and monitoring through our website maintenance service.
- PHP and custom builds: upgrades and fixes for bespoke applications through PHP web development.
- WordPress and Magento: safe version upgrades with plugin and theme testing via WordPress development and Magento development.
- Full web development: rebuilds for sites that are too outdated to patch sensibly, through our web development team.
- Search visibility: protecting rankings after a compromise with our SEO services.
If you want ongoing support across your site and marketing, our Marketing as a Service (MaaS) option bundles website maintenance with the rest of your digital marketing.
Frequently Asked Questions About the PHP Security Update
Q. What is PHP2Shell?
A. PHP2Shell is the nickname for CVE-2026-109618 and CVE-2026-109619, two critical remote code execution vulnerabilities in the PHP engine. They let an unauthenticated attacker run code on a vulnerable web server. Both score 9.2 on the CVSS v4.0 scale.
Q. Which PHP versions fix the 2026 vulnerabilities?
A. PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, all released on 21 October 2026. Anything older on those branches is vulnerable. PHP 8.1 and earlier get no official patch.
Q. Do I need to update WordPress to fix it?
A. No. The flaw is in PHP, not WordPress, so updating WordPress or plugins does not fix it. You need a patched PHP on the server. Keep WordPress updated anyway as part of normal maintenance.
Q .How do I check my PHP version?
A. Open your hosting control panel and look for PHP version or MultiPHP Manager. In WordPress, go to Tools > Site Health > Info > Server. Your host can also tell you.
Q. Is the vulnerability being actively exploited?
A. Yes. Researchers have observed exploitation in the wild, and CISA added CVE-2026-109618 to its Known Exploited Vulnerabilities catalog on 26 October 2026. Amazon reports attempts started on 17 October, before patches were out.
Q. Is my shared hosting safe?
A. Only once your host has patched and restarted PHP. Large hosts began rolling out fixes on 21 and 22 October, but timing varies by plan. Ask your provider to confirm in writing.
Q. Can I fix it without updating PHP?
A. No. PHP’s advisory says no configuration change fully mitigates the flaws. Some settings block one attack path temporarily, but updating is the only safe choice.
Q. My site uses PHP 8.1. What should I do?
A. Upgrade to PHP 8.4 or 8.5 as soon as possible after testing. PHP 8.1 has been end of life since 31 December 2025 and will not receive an official fix.
Q. When does PHP 8.2 stop being supported?
A. PHP 8.2 reaches end of life on 31 December 2026. After that date it receives no security fixes, so plan your upgrade now.
Q. Does this affect Shopify or Webflow stores?
A. These platforms say they are not built on PHP, so the vendor handles patching. Any separate PHP site or server you run alongside them still needs to be updated.
Q. Will upgrading PHP break my website?
A. It can, mainly through older plugins, themes or custom code. Test on a staging copy first. Minor updates within your current branch, such as 8.3.35 to 8.3.36, are low risk.
Conclusion: Update PHP First, Then Plan Ahead
The October 2026 PHP security update is not routine. Two critical flaws are being exploited, and the only reliable fix is a patched PHP version: 8.5.12, 8.4.27, 8.3.36 or 8.2.35. WordPress and plugin updates will not protect you here.
Check your version today, get written confirmation from your host, and watch for signs of compromise. Then use the quieter weeks ahead to move off PHP 8.1 and older, and to plan your PHP 8.2 upgrade before 31 December 2026.
Not sure whether your website is patched? Salt Marketing can check your PHP version, update it safely and keep your site monitored. Contact our team or call +353 1 9065 862 for a no-pressure chat about your website’s security. You can also browse more updates on our blog.



Need Help With Your Project?