20 minutes reading time (4010 words)

PHP2Shell: who updates your site's PHP?

Umberto Mazza standing at the counter of a café in Shoreditch, London, reading his hosting provider's notification about a PHP vulnerability on his phone

Wednesday 21 October 2026, morning. Ozone Coffee, Leonard Street, Shoreditch. Exposed brick, copper lamps hanging over the counter, green stools, pale wooden boards underfoot. The air smells of freshly roasted coffee, because the roastery is right there, a few metres from the table where I sit when I fancy a proper coffee before heading up to the office.

My phone buzzes. It's the app from my hosting provider, the one where I keep my own sites and my clients'. A notification about critical vulnerabilities in PHP.

I read it standing up, cup in hand. I can tell it's serious. Then I do something I'm happy to tell you about today, because it doesn't exactly show me in a flattering light: I put it off. I tell myself it's better to look at it properly, from my desk, with a clear head. That's about two hours. I get back to the office, answer emails, sort out the day. Only then do I open the terminal and start working out what's going on.

I'm telling you about this hesitation because it's the one thousands of website owners are having right now. With one difference: I knew what to look for and who to ring. Berto, who's had a website for fifteen years and has always seen it "just work", usually doesn't even know there's such a thing as PHP.

This article starts from there. From a question your quote doesn't contain and your hosting provider has never asked you: who updates your site's PHP?

In short

  • PHP2Shell is the name given to two vulnerabilities in the PHP language (CVE-2026-109618 and CVE-2026-109619, severity 9.2 out of 10 on the CVSS scale). They're in PHP, not in WordPress, Joomla or Drupal.
  • They let an attacker run code on the server: in the jargon, remote code execution (RCE).
  • The fixes came out on 21 October 2026 in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
  • The right question isn't "is my site up to date?", but "who updates PHP, and how do I check it's been done?".
  • 2FA, rules in the .htaccess file and a firewall inside the site are all useful. They're no substitute for the patch.
  • Updating PHP can break your site: it's the bit nobody talks about, and the bit that kept me busiest.

What happened, in order

Infographic showing the PHP2Shell timeline from 20 to 26 October 2026: preview, release of the patches, third flaw, CSIRT Italia alert, addition to the CISA catalogue

I'll put the dates in order, because there's a lot of muddled reporting going around at the moment.

  • 20 October: the PHP project gives a preview of the announcement.
  • 21 October: the fixed versions come out. The same day, from 14:19 UTC (Greenwich time), the security firm watchTowr spots exploitation attempts. The NCSC, the UK's National Cyber Security Centre, publishes its advisory.
  • 23 October: PHP flags a third flaw, separate from the first two. More on that further down, because it's the easiest thing to get wrong.
  • 25 October: alert from CSIRT Italia, the national computer incident response team. In its survey: 741,523 exposed services, of which 285,149 potentially vulnerable. Among those where the version can be identified, 81.9% turn out to be vulnerable. Set against the total, the potentially vulnerable ones come to about 38% (my own calculation, not theirs).
  • 26 October: the US CISA adds the flaws to its catalogue of actively exploited vulnerabilities (KEV, Known Exploited Vulnerabilities).

One figure to give you a sense of scale: according to W3Techs, in mid-July 2026 PHP was running on 70.8% of the sites whose server-side language is known. It's not some corner of the web. It's the floor.

What they are, without an attacker's tutorial

I'll explain the mechanism with a metaphor I know well. Picture a restaurant kitchen in Portici during service. Orders come in one after another, the chef works at the same counter, uses the same pans. If a ticket arrives half-finished, badly written, and the chef carries on regardless, the dish goes out wrong. If a pan isn't washed and the next ticket finds it dirty, the next customer eats what the previous one had cooked.

The two flaws work a bit like that.

  • CVE-2026-109618: when PHP runs out of memory, the way that situation is handled cuts processing short and leaves the request's data in an unfinished state.
  • CVE-2026-109619: data belonging to one request survives after the memory has been freed, and gets reused by a later request on the same process.

I'll stop there. Not because I can't go further, but because beyond that point is the stuff that helps the attacker, not the defender.

What you need to know:

  • The problem is in the runtime, ie the engine that runs the code. That's why a perfectly up-to-date WordPress, Joomla or Drupal site is vulnerable all the same. Automattic, the company behind WordPress.com, has said the exploits work on up-to-date installations of WordPress, Drupal and Joomla.
  • mod_php is the riskiest configuration. But PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are affected too. If you don't know what those mean, that's all the more reason to keep reading.
  • The affected versions go all the way back to 5.4. If you've got an old site that's never been touched, you're in the worst spot.
  • From 8.1 downwards there's no official fix release. There are source-code patches and backports (fixes carried over to old versions) supplied by distributors such as CloudLinux and Red Hat.

Who updates your site's PHP?

This is the question that gives the article its title. The answer depends on where your site lives.

Hosting modelWho updates PHPWhat to ask
Shared hostingThe provider, usually. Sometimes you pick the version from a control panel.Which version is running for my domain right now? Has the server been patched?
Managed WordPressThe providerHave they confirmed in writing that the servers are protected?
Reseller (someone sells you space from another provider)Depends on two parties: whoever sold it to you and whoever runs the serverWhich of the two? And who answers if they don't do it?
VPS or dedicated serverYou. Or whoever you've appointed, but it has to be in writing.Who has the admin credentials? Who restarts the services?
ContainersWhoever builds the imageWhen was the image last rebuilt?
Closed platforms (SaaS)The platformHave they said they're not affected? (Webflow did.)

Diagram comparing three hosting models (shared, reseller, VPS) and showing who is responsible for updating PHP in each

A quick word on no-code site builders: if you've gone down that route, I covered it in No-code: you can finally build your own website without asking anyone's permission (but do it properly). The freedom to build is real. So is the responsibility of knowing who's keeping the engine running.

The version-number trap

This is where I've seen very capable people come unstuck. The version number lies.

When a distributor like CloudLinux fixes a flaw on an old version, it often doesn't change the main number. The patched ea-php84 package becomes 8.4.26-2, not 8.4.27. If you only check the number and think "26 is lower than 27, I'm exposed", you're wrong. If you see "8.4" and think "no worries", you're wrong the other way.

What to actually look at:

  1. The package build date. It needs to be 21 October 2026 or later.
  2. The changelog. On Red Hat systems and derivatives you query it with rpm -q --changelog <package>. On Debian and Ubuntu, with apt changelog. It must mention the two vulnerabilities.
  3. The restart of the processes. A package that's been updated on disk protects nothing if the process serving your site is still the old one, sitting in memory.
  4. The php -v command doesn't tell you what you think it does. It shows the command-line (CLI) version, which can differ from the one serving your site's pages.
  5. All the installed versions. Plenty of servers have more than one. If you update one and forget the others, the site running on the forgotten one stays wide open. That goes for CloudLinux's "alt-php" versions too.

Simulated terminal window listing a PHP 8.4.26-2 package and its build date, to show that the version number alone doesn't tell you whether the patch has been applied

Five questions to ask in writing

If your site isn't managed by you, write to your hosting provider. Don't ring: an email leaves a paper trail.

  1. Which PHP version is serving my domain, today?
  2. Has the fix for CVE-2026-109618 and CVE-2026-109619 been applied? With which package and what date?
  3. Were the processes restarted after the update?
  4. If I'm on 8.1 or earlier, are you using a verifiable backport?
  5. Have you checked for signs of intrusion on my account?

A vague answer is an answer in itself. And if you don't know who'll reply, the answer is: nobody. It's the same problem I described in The vibe-coded website: the ticking time bomb Berto can't see: a site that works isn't a site someone's looking after.

Updating isn't a single click

This is the section the press releases don't write, and the one where I spent the longest stretch of those days.

Changing PHP version from the hosting panel takes ten seconds. Working out whether the site survives takes a good deal longer.

Deprecated doesn't mean removed

  • Deprecated function: the language warns you it won't exist one day. The site usually keeps working, but the logs fill up with warnings.
  • Removed function: it's gone. The site stops working, sometimes with a blank page, sometimes with a fatal error.

A few concrete examples, to give you an idea of the era we're talking about. Functions like create_function(), each() and __autoload() were removed in PHP 8.0. The old mysql_* functions for talking to the database vanished as far back as PHP 7.0. A theme written in 2014 can still contain them without anyone having noticed, because until now the old PHP put up with them.

What actually happened to me

On our own sites we had to modify scripts that used deprecated expressions. In other cases the errors were more serious, again down to obsolete expressions, and they broke the site. On some, correcting a couple of lines was enough. On others the job involved several scripts and took far more work.

The worst case wasn't one of our sites. It was an old site, not built by us, stuck on an earlier version of WordPress. We updated it to the latest release and moved it to a newer version of PHP, and it fell over: incompatibilities in some scripts in some of the theme's plugins. Nobody had touched that code in years.

That morning, in front of the screen, I didn't think "well done me for patching". I thought: so that's why nobody does it. Because doing the right thing costs, and if the site breaks, you're the first person they ring.

This is my position, and I'm not going to soften it: not updating because you're afraid of breaking the site is a choice. It's just that somebody else picks up the bill, and it arrives later.

Simulation of an old-style website showing a blank page with an error after a PHP update, to illustrate the incompatibility of obsolete scripts

The method, in brief

  • Staging: a copy of the site to test on, never the live version directly.
  • Step-by-step jumps: don't go from 7.4 to 8.5 in one go. You climb version by version and check the logs at every step.
  • Code analysis tools: PHPCompatibility, a free check that relies on PHP_CodeSniffer, flags incompatibilities before your visitors find them.
  • A backup first, always. I go into it at length in A backup isn't a precaution: it's your website's fourth wall, so here I'll just remind you.

The 8.2 trap

If you're on 8.2 today, you're in a closing window: security support ends on 31 December 2026. A patch today on a version that stops receiving fixes in two months is a stay of execution, not a solution. Where possible, the right direction is 8.4 or 8.5.

Italy and the UK: same advice, figures you can't compare

Diptych: on the left Umberto Mazza at a small table in a bar in Caserta with a short espresso and his phone, on the right the same Umberto at a table in a pub in Southwark with a pint and his laptop

Every time, I'm tempted to tell you the convenient story: the British are pragmatic and get a move on, the Italians turn up late. It would be lovely to write. But the data doesn't back it up, and I'd rather be straight with you.

Here's what the two authorities say, looking at the same problem from two different angles:

  • NCSC (United Kingdom, 21 October): take stock of PHP wherever you use it, update, consider taking offline anything you can't protect, look for any backdoors (hidden access left behind by an attacker), use the Early Warning service to receive alerts. Anyone handling personal data should remember the security obligation under Article 32 of the UK GDPR.
  • CSIRT Italia (25 October): same substance. Update, check, monitor.

Two authorities, one message. The figures going around, on the other hand, can't be put side by side: different survey methods, different dates, different scopes. When you hear that "Italy is worse off" or "the UK is better off", always ask: measured how, when, and on what?

What I can tell you from first-hand experience, living between Caserta and London, is something else. In Shoreditch, when something like this breaks, the people around me expect a message from their supplier. In my experience, in Santa Maria Capua Vetere or Portici plenty of site owners wait for the problem to sort itself out, because nobody's ever told them it's their problem. Take two typical cases, made up but built on things I've seen: Bobby, in Manchester, fires off a line to his supplier: "All sorted your end?". Berto, in Caserta, writes to nobody. He waits to see if I ring him.

That's not data. It's an impression from someone who works on both sides, and it should be read as such. And the diagnosis is the same in both places: the site belongs to somebody, PHP belongs to nobody.

What happened to those who took it seriously

I haven't got any Italian examples to tell you about, and I'm not going to make any up. Here's what's been seen in recent days, from public sources:

Those who switched off as a precaution

  • cyber.gov.au, the Australian cyber security agency's website, went offline on the evening of 21 October. A government spokesperson said the sites were "temporarily unavailable while work is under way to mitigate the risks". No active exploitation was known at the time of the alert: switching off was a prudent call, not a surrender.
  • Government sites in several European countries (among those named in the press: France, Finland, Denmark, the Netherlands) were taken offline pending the patch. Other reports mention the Port of Rotterdam. In the sources I've read, there's no confirmed compromise of any of these bodies.

Taking yourself offline for a few hours with a site that doesn't earn you anything: a nuisance. Taking yourself offline with a site that sells every minute: expensive. But it's a decision, and somebody made it knowingly. That's different from not knowing.

Those who warned their customers

Some providers published clear statements: IONOS said the sites hosted on its infrastructure were protected, Automattic said the same for WordPress.com, and Kinsta, Hostinger and others put out guides for customers. Not all the statements are equally verifiable, and I can't tell you anything about any Italian hosting provider: I haven't found any public statements I could check, and I don't write what I can't prove.

A useful point: a statement saying "our servers are protected" is about their infrastructure. It says nothing about your obsolete script, or about the site running on a different machine.

The third flaw, with caution

On 23 October PHP flagged CVE-2026-115560. Do take care here, because the news coverage has mixed it up with the first two, and it's not the same thing:

  • It's not fixed by the 21 October releases.
  • It needs an unusual combination: an application that changes the session handler at runtime with a certain setting, and session upload progress switched on.
  • The mitigation is to turn off session.upload_progress.enabled. If you've already done that for CVE-2026-109619, you don't need to do anything more.
  • The fix will arrive with the next regular release. At the time of writing, no exploitation has been reported.

If you're reading this a few days on, check the latest status on the PHP website. These things move fast.

What we did at Insight

I'll be honest with you, with one limit: I'll tell you what we did, not how, because the details are only useful to someone looking to break in.

Some context. At the studio we've got no employees. What we do have is a team of external collaborators, each with their own skills, who help us at times like this. Including a few consultants in Manchester. Some things we do ourselves, others we couldn't do without them.

Umberto Mazza at his desk in the City Road studio in London, on a video call with the Manchester consultants while going through a list of sites on the monitor

Two speeds. We'd already started working on our sites to tighten security a few weeks earlier. The flaws coming out forced us into two different jobs: where we'd already stepped in, go back and add further measures; where we hadn't yet, get it done in the shortest possible time.

Six concrete things.

  1. PHP up to 8.5 where possible. Where the sites wouldn't allow it, at least 8.2.
  2. Rewriting scripts with deprecated or obsolete expressions, to make them compatible with the new release. On some sites it took very little. On others, a great deal.
  3. Two-factor authentication (2FA) on both the hosting admin panels and the sites' back ends. Anyone logging in has to prove they are who they say they are with a second step, on top of the password.
  4. Security rules in the .htaccess file, the server configuration file for each site, and a firewall component inside the sites.
  5. Intrusion checks extended to every site. On many we'd already done them thoroughly. We extended them to the ones left out.
  6. Work for clients without an active support contract too.

An important clarification on points 3 and 4, because it's the most misunderstood. Two-factor authentication, rules in the .htaccess file and a firewall inside the site don't stop PHP2Shell. They close other doors, and they're doors that need closing anyway. But the flaw is in the engine, not in the access. Only updating PHP closes it. I say this because I've seen more than one client relax after "we've switched on 2FA". No. Brilliant thing to do, and it's not enough.

Why we did it even where there was no contract

One of our clients has a great many sites and domains managed and hosted by us. They'd suffered an attack on their systems, which had involved one of their sites too: work on those sites had started a few days before PHP2Shell. When the alerts came out, there was no active support contract. We stepped in anyway, and we told them.

The reason's simple: we look after the technical infrastructure of the site, and when something like this happens it comes naturally to act in the client's interest, contract or no contract. It's a value, not a strategy. It isn't always appreciated. Far too often we don't even get a thank-you. I do it anyway, and I'd rather tell you without any bitterness: it's the price of doing this job the way I see it.

One thing I learned in those hours, and that I'll leave you with: communication with the client, in the first moments, matters as much as the fix. When you don't yet know everything but you already know it affects them, you have to say so. I've written about how to do it in The words of an emergency: what to write to clients when you don't know anything yet.

Checklist: what to do this week

Split it in two: things you can do yourself in ten minutes, things you need to ask for.

To do straight away

 Write down on a sheet of paper where all your sites, domains and subdomains live. The forgotten one is the first to fall.

 For each one, work out who manages the server: provider, reseller, collaborator, nobody.

 Check in the hosting panel which PHP version is set for each site.

 If you can choose, move to a supported version (8.4 or 8.5) after taking a backup.

 Switch on 2FA on the hosting panel and on the site's admin login.

 Change your passwords if you haven't in months. If you've got doubts about your credentials, read How to check whether hackers have our emails and passwords.

Generic mock-up of a hosting control panel with a drop-down menu for choosing the PHP version and a warning icon next to the versions that are no longer supported

To ask for (in writing)

 The five questions from earlier, to your provider or to whoever manages the site.

 Confirmation that a check for signs of intrusion has been done, not just an update.

To plan

 A test copy (staging) of the site before changing version.

 A compatibility check of the plugin and theme code.

 A date in the calendar to review the situation before 31 December 2026 if you're on 8.2.

What not to do

  • Don't wait for your site to break before you realise PHP wasn't up to date.
  • Don't trust the version number alone. Package date, changelog, restart.
  • Don't update on the live site without a test copy and without a backup. Never.
  • Don't think a security plugin will protect you from a problem in the engine. That's not its job.
  • Don't post "we're safe" on social media if you haven't checked. Saying it too soon comes at a cost if it turns out not to be true.
  • Don't ignore the third flaw just because it needs unusual conditions. Check the setting and switch it off if you don't need it.

My position

A website isn't an object. It's a service that somebody keeps running every day, quietly, while you're thinking about something else. When that somebody isn't there, or you don't know who it is, the site's like a house with the keys under the doormat: as long as nobody walks past, all's well.

PHP2Shell isn't the first flaw and it won't be the last. But it's the first of this scale that puts a simple question in front of us, one the market has dodged for twenty years because the answer's uncomfortable: who does the maintenance belong to?

If the answer's "no idea", you've got your work cut out this week.

If you'd like a hand working out where you stand, drop me a line. I'll tell you where to look, and I'll also tell you when there's no need to worry. I don't sell fear. I sell work done properly, which is less showy and more useful.

Sources

Every figure quoted in the article has its source here, in the order it appears. Where the sources are secondary, I say so.

PHP2Shell: frequently asked questions

My WordPress site is up to date. Am I safe?

Not necessarily. PHP2Shell is in the PHP language, not in WordPress. An up-to-date WordPress on a server running unpatched PHP is vulnerable all the same. What matters is the version and the patch of the PHP serving your site.

How do I find out which PHP version my site uses?

From the hosting panel, usually under "PHP version" or "PHP selector". The number isn't enough, though: backports (fixes carried over to old versions) don't change the main version. Ask your provider for the package date and the changelog.

If I've switched on two-factor authentication, am I protected?

Not from PHP2Shell. 2FA protects logins, but the flaw sits in the engine that runs the code. Switch it on anyway, but the only defence is to update PHP.

Can I update PHP myself, from the panel?

Technically yes, but you risk breaking the site if it contains obsolete scripts. Take a backup first, test on a copy (staging) and go up in steps, not in a single jump.

I'm using PHP 8.1 or earlier. What should I do?

There's no official fix release for these versions. You need backports supplied by the distributor (CloudLinux or Red Hat, for example), or a move to a supported version. Ask your provider how your server has been protected.

Has the third vulnerability, CVE-2026-115560, been fixed?

Not by the 21 October releases. It needs unusual conditions, and the mitigation given is to switch off session.upload_progress.enabled. The fix will arrive with the next regular release: check the latest status on the PHP website.

Could my site already have been compromised?

It's possible. After the update you also need a check for signs of intrusion, not just the patch. If you've got doubts, ask your hosting provider or whoever manages the site, in writing.

4.7 (3 voti)
Agency contract: 12 questions to ask before you si...
How to Write a Comic: From Script to Page

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Monday, 23 November 2026

By accepting you will be accessing a service provided by a third-party external to https://insightadv.it/

Your weekly dose of Insight!

All our latest work. Every Monday in your inbox.

From Creative Writing to Photography, taking in Marketing and Design along the way. Every day we're busy prepping exclusive content to give you some fresh inspiration. Sign up so you don't miss a thing: every Monday at 09.30am you'll get the full weekly round-up. No spam. Just proper quality content, and you can unsubscribe whenever you like.

 

Satisfied customers

What they say about us

I had the pleasure of collaborating with Umberto, an exquisite person, always available, competent and quick to find solutions to problems, whether large or small; maximum satisfaction!
2013-10-02
Stefano Beltrame
Staff / Nebula Sigarette Digitali
I also leave my testimony regarding the working relationship with Insight Agency, I have been a customer for years now and I am very very satisfied above all for the competence and availability as ...
2013-09-16
Read more
Luca Crocetti
CEO & Co-Founder / Lukkos
I have known Umberto for a few years and I can confirm that he is a professional in his field! Over time a good friendship has also been established which I am sure will last over time: it is prec...
2013-09-24
Read more
Pietro Sciannamblo
CEO & Founder / Esigaretta Italia

About

Insight Adv Ltd is a full-service advertising agency. We offer our customers Graphic and Web Design, Marketing and Strategic Communication services.

We create websites, e-commerce and fad platforms, commercials and promotional videos and applications for smartphones and tablets. We also offer digital & direct marketing, social media and content management services. 

Pills...

" Advertising agencies express for the collective what dreams express for the individual. "
Marshall McLuhan

Follow us on