PHP Security Update (October 2026): How to Fix the php2shell Vulnerabilities

PHP security update
Share

On 21 October 2026, the PHP project released an urgent PHP security update to fix two critical vulnerabilities, now widely known as “php2shell”. If your website runs on PHP, and that includes almost every WordPress, WooCommerce, Craft CMS and custom PHP site, this one needs your attention this week, not next quarter.

This guide explains what happened in plain English, which versions are safe, how to check your own site and what to do if you cannot update straight away. It is written for Australian business owners, marketing teams and agencies who look after websites but may not manage servers every day.

What Are the php2shell Vulnerabilities?

The two flaws are tracked as CVE-2026-109618 and CVE-2026-109619. The PHP security team rated both 9.2 out of 10 (CVSS v4), which puts them in the critical range.

  • CVE-2026-109618 relates to how PHP handles running out of memory in the middle of a request. In some cases PHP can treat half-built data as if it were complete.
  • CVE-2026-109619 relates to data left over in memory from one request that a later request can trip over (a “use-after-free” style bug). One confirmed attack route uses PHP’s upload progress feature, which has been switched on by default for many years.

According to the PHP project, both issues can allow unauthenticated remote code execution. In simple terms, an attacker may be able to run their own code on your server without logging in. That can lead to defaced pages, stolen customer data, spam or malware injected into your site, and your domain being blacklisted.

Why This PHP Security Update Is Urgent

A few things make this release more serious than a routine patch:

  • Details leaked early. Information about the bugs appeared publicly before the official release, so attackers had a head start.
  • Attacks are already happening. Security firms including Cloudflare, Amazon Threat Intelligence and watchTowr have reported exploitation attempts in the wild.
  • The problem sits below your CMS. The flaws are in PHP itself, not in WordPress, plugins or themes. Updating WordPress will not fix it. WordPress.org has said no WordPress update is required or planned, because the fix is the PHP update.
  • Older versions are affected too. Researchers traced the affected code back as far as PHP 5.4, so legacy sites are exposed.

Government agencies in several countries, including Australia, issued guidance urging organisations to patch quickly.

Which PHP Versions Are Affected and Which Are Fixed?

The fixed official releases are:

  • PHP 8.5.12 (for the 8.5 branch)
  • PHP 8.4.27 (for the 8.4 branch)
  • PHP 8.3.36 (for the 8.3 branch)
  • PHP 8.2.35 (for the 8.2 branch)

Any earlier release in those branches is vulnerable. For older versions:

  • PHP 7.4, 8.0 and 8.1: there is no new official release. The PHP security team published source code patches, but these must be built and applied by your host, Linux distribution or server administrator.
  • PHP 5.4 to 7.3: these versions are end of life and get no fix from the PHP project. The safe path is upgrading to a supported version.

Also note that PHP 8.2 reaches end of life on 31 December 2026, so if you are on 8.2 it is a good time to plan your move to 8.3 or newer.

How to Check Your Website’s PHP Version

On a WordPress Site

  • Log in to wp-admin.
  • Go to Tools > Site Health, then open the Info tab.
  • Expand the Server section. Your PHP version is listed there.

On Other Sites and Servers

  • Check your hosting control panel (cPanel, Plesk or your host’s dashboard), which usually shows the PHP version per site.
  • If you have server access, run php -v on the command line. Keep in mind the command-line version can differ from the version your website uses, so confirm both.

Important: some Linux distributions apply security fixes to older-looking version numbers (called backporting). So a number like 8.1 does not always mean you are unpatched, and a newer number does not prove you are safe. The reliable answer is to ask your host directly whether they have applied the 21 October 2026 PHP security fixes.

What to Do Now: A Step-by-Step Plan

1. Find Out Who Manages PHP on Your Server

  • Managed WordPress hosting: your host normally updates PHP for you. Check their status page or support emails and get written confirmation.
  • Shared hosting: the host patches PHP for the whole server. Ask whether the patch is applied and whether you can switch your site to a newer PHP version.
  • VPS, cloud or dedicated servers: you or your developer are responsible. This group needs to act first.

2. Back Up Before You Change Anything

Take a full backup of your files and database and make sure you can restore it. Store a copy off the server.

3. Update PHP and Restart

Install the fixed release for your branch, or your distribution’s patched package, then restart PHP (for example PHP-FPM or Apache) so every worker loads the new code. An update that has not been restarted does not protect you.

4. Test on Staging First Where Possible

If you are jumping from an old version such as 7.4 to 8.3, older plugins, themes or custom code may break. Test on a staging copy, then check key pages, forms, checkout and logins after going live.

5. Check for Signs of Compromise

Because attacks started before the patch was out, review your site after updating. Look for unknown admin users, unexpected new PHP files, changed files you did not edit and unusual outgoing traffic. Our website security checklist covers the basics.

Can’t Update Straight Away? Temporary Measures

These steps reduce risk while you organise a proper update. They are not a full fix.

  • Turn off upload progress tracking: set session.upload_progress.enabled = 0 and restart PHP. PHP says this blocks one known attack path for CVE-2026-109619. WordPress does not use this feature, so it is usually safe to disable.
  • Adjust memory settings carefully: PHP’s advisory describes a memory limit workaround that narrows CVE-2026-109618 but does not close it. Talk to your developer before changing this, because it can affect server stability.
  • Use a web application firewall: Cloudflare has deployed rules for known attack patterns, but it describes them as a stopgap and they only protect traffic routed through Cloudflare.
  • Consider taking the site offline: if you manage your own server and cannot patch quickly, some security agencies have advised isolating internet-facing applications until the fix is in place.

Long-Term Lessons for Business Websites

  • Know exactly who is responsible for server-level updates, not just CMS and plugin updates.
  • Stay on a supported PHP version and plan upgrades before end-of-life dates.
  • Keep a staging site so urgent updates can be tested quickly.
  • Have a maintenance plan that includes monitoring, backups and security patching.

Frequently Asked Questions

Will updating WordPress fix the PHP vulnerabilities?

No. The flaws are in PHP, the language your server runs, not in WordPress itself. You need the PHP update from your host or server administrator.

Is my site safe if it is behind Cloudflare?

Cloudflare’s firewall rules add a helpful layer of protection, but Cloudflare itself calls them a stopgap. You still need to update PHP.

What if my site runs PHP 7.4 or 8.1?

There is no new official release for these versions. Ask your host if they have applied the backported patches, and plan an upgrade to PHP 8.3 or newer as soon as you can.

Can EMU Digital Agency update PHP for me?

Yes. We can check your PHP version, confirm whether your server is patched, upgrade PHP safely on staging first, fix any compatibility issues and review your site for signs of compromise.

Conclusion

The October 2026 PHP security update is one of the most important website patches of the year. Check your PHP version today, confirm with your host that the fix is applied, and upgrade if you are on an old or unsupported version.

Not sure where to start, or worried an upgrade will break your site? Our PHP development team and WordPress developers can patch, upgrade and test your website for you. Get a quote or contact EMU Digital Agency today and we will help you get it fixed.

Picture of EMU Digital Agency

EMU Digital Agency

A Melbourne-based web design and development team helping Australian businesses grow with fast, SEO-ready websites on WordPress, Webflow, Shopify and Craft CMS.

Work with EMU

Ready to put this into practice?

Our team designs, builds and optimises websites for Australian businesses. Tell us about your project.

Get a free quote
Keep reading

Related articles.