uriroig
← Blog

News21 October 2026 · 5 min read

PHP2Shell: the PHP vulnerability and your website

PHP2Shell, the critical PHP flaw that lets attackers take over web servers, is already being exploited. Which versions fix it and what to check today.

URUri Roiguriroig.es
Logotipo oficial de PHP: las letras php sobre un óvalo azul violáceo
📷 Colin Viebrock · Public domain · Wikimedia Commons
UR

I build websites, custom software, apps and AI automations for businesses.

  • ✓Fixed-price quote
  • ✓Reply within 24h
  • ✓No commitment
Get a free quote→
In this article
  1. What has happened
  2. Why it matters
  3. What it means for a Spanish small business
  4. What you can do now

On 21 October 2026 the PHP project released emergency versions to fix two critical flaws nicknamed PHP2Shell. PHP is the language behind WordPress, many online shops and a good share of the management panels small businesses use. INCIBE, Spain's national cybersecurity institute, has rated it critical.

What has happened

The two vulnerabilities (CVE-2026-109618 and CVE-2026-109619) score 9.2 out of 10 and let an attacker run code on the server without needing a username or password. According to Tenable and SecurityWeek, the details leaked before the coordinated publication, and Amazon detected exploitation attempts four days before a patch existed. Cloudflare has also reported attack traffic.

The fixed versions are:

PHP branch Patched version
8.5 8.5.12
8.4 8.4.27
8.3 8.3.36
8.2 8.2.35
7.4 to 8.1 No official version; code patches only, for those who compile PHP
7.3 and earlier No patch from the project

It affects any installation that serves web pages (PHP-FPM, Apache with mod_php, LiteSpeed and others), with a higher risk in mod_php. Tenable reports that Calif researchers confirmed unauthenticated exploitation on specific versions of WordPress, Drupal, Joomla and Magento.

On 23 October INCIBE widened the alert: PHP is also inside devices from QNAP, Synology, Mitel and Palo Alto Networks. In QNAP's case, as at 24 October there were still no fixed versions for its NAS devices.

Update as at 4 November

  • Exploitation confirmed. The US cybersecurity agency, CISA, added both vulnerabilities to its catalogue of exploited flaws on 26 October.
  • Firewalls attacked. According to SecurityWeek (30 October), a China-linked group chained PHP2Shell with another flaw to take control of Palo Alto Networks firewalls whose management interface was exposed to the Internet. Palo Alto has already released patches for its supported versions.
  • WordPress: no known cases for now. Wordfence, a WordPress security company, recorded more than 77,000 attack requests, but as at 28 October it was not aware of any WordPress site compromised this way. That does not mean you needn't update: the attempts continue.
  • QNAP. We have not found confirmation that QNAP has yet released fixed versions. Check its advisory QSA-26-18 before exposing the NAS again.

Why it matters

This is not a flaw in one specific plugin that is fixed by updating one component. It is in the engine that runs the website. And many servers are running old PHP branches that no longer receive official versions, so the patch will not reach them on its own.

In addition, Qualys warns of a detail that causes confusion: some Linux distributions apply the patch without changing the version number. Looking only at "which PHP do I have" is not enough; you have to check the vendor's advisory.

What it means for a Spanish small business

Most small businesses do not run their own server. That does not mean they are unaffected, but that the question changes: who is responsible for updating PHP on my website, and have they done it yet?

If your website is on shared hosting

Example: a physiotherapy clinic with a WordPress website on shared hosting. Normally the provider updates PHP. What does depend on you is the version selected in the control panel: if the site is still on PHP 7.4 or 8.0 "because it works", that branch has no official fixed version.

If you have your own server or an online shop

Example: an online spare-parts shop on Magento or PrestaShop on a dedicated server set up by an agency years ago. If nobody is in charge of maintenance, the server may still be exposed. There are no shortcuts here: you must update PHP and restart the processes for the change to take effect.

If you have a NAS or other device in the office

Example: an administrative firm that shares documents using a QNAP NAS reachable from outside for remote working. Until there is a patch, INCIBE recommends removing direct access from the Internet, turning off port forwarding and UPnP, and connecting only through a VPN.

What tends to go wrong

  • Nobody is responsible for maintenance. The website was handed over and has not been touched since.
  • Unsupported versions. PHP 8.1 or earlier are left without an official fixed version.
  • Not knowing which devices have PHP inside. A NAS, a phone system or a firewall count too.

What you can do now

  1. Ask your hosting provider or your agency whether they have already applied the fixed version and on what date. Ask for the answer in writing.
  2. Check the PHP version in your hosting control panel or in the WordPress Site Health screen. If you are on 8.1 or earlier, plan the migration to a supported branch.
  3. Take a backup before updating and test the website afterwards: forms, basket, payment gateway.
  4. Review your office devices with access from outside (NAS, phone systems) and follow the manufacturer's advisories.
  5. If you cannot update yet, PHP proposes temporary configuration measures, but they are no substitute for the patch. Cybersecurity agencies recommend restricting access or disconnecting whatever you cannot protect.
  6. Look for signs of intrusion if your website was exposed: new administrator users, recently modified files or strange redirects.

If your website has gone a long time without maintenance or runs on an old version, it may be time to consider a full update. In web development we explain how we build maintainable websites with planned updates.

Don't know which version your website is on or who maintains it? Tell us what you have and we will reply within 24 hours.

Sources

How's your website doing?FreeCheck it for free in 30 seconds: speed, Google, mobile and whether AI can find you.
Share itLinkedInWhatsAppX
UR

Written by

Uri Roig

Technical consultant and developer with more than 10 years of programming. I help small businesses grow their revenue with websites, custom software, apps and AI automation, from Matadepera (Barcelona).

+34 662 23 19 83 · WhatsApp

Keep reading

Free quote · reply within 24h

Tell me about your case

Tell us what you need and within 24h you'll have a fixed-price estimate. No commitment.

Step 2 of 2

Your details

By submitting you agree that we may contact you about your request. See privacy.