SME Security ·

PHP2Shell: what UK small businesses should do now, and how to be ready for the next one

Two critical PHP flaws were fixed on 21 October 2026. What a small business without a security team should do this week, and how to stay ready on a small budget, based on NCSC and NSA guidance.

PHP2Shell: unpatched PHP lets an attacker run commands on the server; updated PHP gives no way in

On 21 October 2026 PHP released emergency fixes for two critical flaws that can let an attacker run commands on a web server without logging in. PHP powers WordPress, WooCommerce and many hosting control panels, so a lot of small business websites depend on it. The NCSC and the NSA gave the same advice: update now, and if you cannot, consider taking the system offline. This guide sets out what a small business without a security team should do this week, and how to stay ready for the next one.

9 min readFor SME owners, office managers and IT providers13 primary sources
Key takeaways
  1. Fixed versions are out. PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 close both flaws. Anything earlier is exposed.
  2. Ask your host, do not assume. Get the PHP version of every site in writing, including old and test sites.
  3. Cannot update? Mitigate or switch off. The NCSC and NSA both say to consider taking the system offline.
  4. Patching is not the end of it. A server attacked before the update may already hold a backdoor.
  5. Most of the long-term fix is free. NCSC tools and Cyber Essentials cover the basics for a few hundred pounds.
9.2

CVSS v4 severity score for both flaws, out of 10

PHP security advisories
34%

of UK businesses have a policy to patch within 14 days

DSIT
25%

of UK businesses have a formal incident response plan

DSIT
92%

less likely to make a cyber insurance claim with Cyber Essentials

NCSC
The story in five graphics

Why a web server flaw is a business problem

One web request, no login, and the attacker is on your server

An updated or mitigated PHP handles the same request safely.

Unpatched PHP Attackeranywhere online Your websitecrafted request, no login Files anddatabase Commands run on server Updated or mitigated PHP Attackersame request Your websitePHP 8.2.35 or later Files anddatabase no way in
Unpatched PHP
Attacker, anywhere online→Your website: crafted request, no login→Files and database
Commands run on server
Updated or mitigated PHP
Attacker, same request→Your website on PHP 8.2.35 or later→Files and database
No way in

TrustOps UK illustration, based on the NCSC alert and NSA advisory of 21 October 2026.

Graphics advance automatically. Hover or select a tab to pause.

Small business owner working on a laptop in the back office of an independent shop

What happened

On 20 October, details of two critical PHP flaws appeared online before their planned disclosure. PHP’s security team brought its release forward and published fixed versions on 21 October. The flaws are tracked as CVE-2026-109618 and CVE-2026-109619, and both score 9.2 out of 10 on the CVSS v4 scale.

  • What they do. An attacker can push PHP into an out-of-memory state that corrupts its memory. The NCSC says this could, under certain conditions, allow unauthenticated remote code execution.
  • What “unauthenticated” means for you. The attacker needs no username or password, only the ability to send a request to your website.
  • What the attacker gets. The NSA notes that flaws like these often give a direct path to the server’s files or database: customer records, orders, and the site itself.
  • How urgent it is. NCSC-NL reports multiple public proof-of-concept exploits and considers large-scale exploitation likely in the short term.

Why this matters for small businesses

You may be running PHP without knowing it

PHP sits underneath WordPress, WooCommerce, Joomla, Drupal and Magento, and inside many hosting control panels, booking systems and network appliances. The NCSC specifically warns about appliances and services that bundle PHP as a component. The forgotten sites are the risky ones: an old campaign microsite, a staging copy, a supplier portal nobody has logged in to for a year.

Most small firms are not set up for a week like this

According to DSIT, 43% of UK businesses reported a breach or attack in the last year, rising to 46% of small businesses. Only 34% have a policy to apply security updates within 14 days, and only 25% have a formal incident response plan. Among small businesses, continuity plans that cover cyber security fell from 53% to 44%.

If you are unable to apply the temporary mitigations, or applying them would take too long, you should consider taking the system offline until it can be fully mitigated.

NCSC, Critical security issue affecting PHP, 21 October 2026

Who patches what

Responsibility is shared, so confirm it in writing

On shared or managed hosting the provider usually updates PHP. On your own server or virtual machine, that job is yours or your IT provider’s.

Your hostPHP updatesIT providerservers, pluginsYousite list

Whoever applies the update, the decision to take a site offline and the list of what you run stay with the business. A host can only patch what it knows about.

What to do in the next 72 hours

  1. List every website and system that could run PHP. Main site, online shop, old and test sites, booking and client portals, and the admin pages of any network or storage appliances.
  2. Ask your host or IT provider, in writing, which PHP version each one runs. You are looking for 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later, or a supplier backport that includes the fix.
  3. If you manage the server, update and restart. Update PHP, then restart the web and PHP services so the fixed version is actually running.
  4. Cannot update today? Apply PHP’s temporary mitigations. These include disabling session upload progress (session.upload_progress.enabled=0) and restarting workers. PHP is clear that updating is the only complete fix.
  5. Still exposed? Take it offline. A holding page on a separate service costs far less than a compromised server.
  6. Check for signs of compromise. Look for unfamiliar files in web folders, new admin accounts, new scheduled tasks and unusual outbound traffic. If you are not confident doing this, the NCSC points to its assured Cyber Incident Response providers.

Sites on PHP 8.1 or earlier are a separate problem. PHP no longer supports them, so plan a move to a supported version rather than relying on workarounds.

Where SME patching goes wrong

01“Our host handles it”

Often true for the main site on managed hosting. Rarely true for a virtual server, a developer’s test copy or an appliance in the comms cupboard.

What to doGet each site’s PHP version confirmed in writing, with the date it was updated.
02Patching PHP but not what sits on it

The PHP update fixes PHP. Plugins, themes and bundled products need their own updates, and some vendors will ship them later.

What to doCheck vendor notices for anything that bundles PHP. NCSC-NL keeps a list of affected products.
03Forgetting the old sites

Old microsites and staging copies tend to run old PHP, and nobody is watching them.

What to doSwitch off what you no longer need. It is the cheapest fix there is.
04Treating the update as the finish line

If a site was attacked before it was updated, a backdoor survives the patch.

What to doCheck for compromise, change admin passwords, and restore from a clean backup if in doubt.

Going forward: security on a small budget

This will not be the last emergency patch. In May the NCSC’s Chief Technology Officer warned that artificial intelligence is showing the ability to exploit old software weaknesses “at scale and at pace”, and told organisations to prepare for a wave of urgent updates. His advice is to adopt a policy to “update by default”: apply updates as soon as possible, and automatically where you can. In our view, that is the single most useful habit a small business can build.

Start with what is free

  • NCSC Early Warning. Free for any UK organisation. It emails you when your internet addresses show signs of compromise, vulnerable services or open ports.
  • NCSC Cyber Action Toolkit. A free, personalised list of actions for sole traders and small firms, building towards Cyber Essentials.
  • A free Cyber Advisor session. A 30-minute consultation with an NCSC-assured adviser on how Cyber Essentials applies to you, for firms with fewer than 250 staff that have not held Cyber Essentials before.
  • Exercise in a Box. A free NCSC exercise to test how your team would respond to an incident like this one.

Then spend a little: Cyber Essentials

Cyber Essentials covers five technical controls, including applying high-risk and critical security updates within 14 days. Organisations with it are 92% less likely to make a cyber insurance claim, according to the NCSC. Self-assessment costs £320 plus VAT for micro organisations and £440 plus VAT for small ones. Only 5% of UK businesses hold it, so it also marks you out with customers.

Then make it routine

This week’s fix, then a 12-month plan

Indicative timescales for a business with an external IT provider or host.

024681012 months
1. This weekPHP2Shell response
Patch
2. Month 1free NCSC tools
Early Warning
3. Months 1 to 4Cyber Essentials
Five controls, certify
4. Months 4 to 12update by default
Auto-updates · tested backups · response plan
Ongoinglist and suppliers
Keep the site list current · ask suppliers how fast they patch
BudgetWhat to doCost
NothingEarly Warning, Cyber Action Toolkit, Cyber Advisor session, Exercise in a Box, switch off unused sitesFree
LowCyber Essentials self-assessment£320 + VAT (micro) · £440 + VAT (small)
ModerateManaged hosting with automatic PHP updates, help from a Cyber Advisor, Cyber Essentials PlusVaries by supplier
Evidence to keepSite list with PHP versions, patch dates, supplier confirmations, a one-page response planYour time
IT support technician and small business owner reviewing a checklist beside a network cabinet

Four questions for your next board meeting or IT review

Q1Which of our websites and systems run PHP, and which version is each on today?
Q2Who applies updates to each one, and how quickly after release?
Q3How would we know if one of our sites had already been compromised?
Q4If our website had to go offline for a day, what would we do?

Where do you stand?

A current list of sites, updates within 14 days and Early Warning in place is a Level 3 (Managed) capability. Tracking patch times and holding Cyber Essentials is Level 4 (Measured). Updating by default, with recovery you have actually tested, is Level 5 (Optimised). Many small businesses sit at Level 2: the host patches, but nobody holds the full picture.

A TrustOps Framework Assessment maps your controls against the model and gives you a costed, sequenced plan sized for a small business. Or start with the free 15-minute assessment.

Sources (13 primary sources)
  1. NCSC, Critical security issue affecting PHP (21 Oct 2026)
  2. NSA, NSA Advisory: PHP Updates (21 Oct 2026)
  3. PHP, Security advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618)
  4. PHP, Security advisory GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
  5. NCSC-NL, php2shell operational information and affected products
  6. NCSC, Preparing for a ‘vulnerability patch wave’ (1 May 2026)
  7. DSIT, Cyber Security Breaches Survey 2025/2026 (30 Apr 2026)
  8. NCSC, A decade of Cyber Essentials
  9. NCSC, Cyber Essentials overview
  10. NCSC, Early Warning
  11. NCSC, Small businesses to receive cyber security boost with new toolkit (14 Oct 2025)
  12. NCSC, Helping small businesses with free hands-on cyber consultancy (Jul 2026)
  13. IASME, Cyber Essentials FAQ: pricing

General information, current as of 21 October 2026. The situation is moving quickly; check the NCSC and PHP advisories for updates. Not legal or regulated compliance advice.