PHP2Shell: what the October 2026 PHP vulnerability means for your website
Blog

PHP2Shell: what the October 2026 PHP vulnerability means for your website

A critical vulnerability in PHP put around 70% of all websites at risk. What is going on, are you affected and what should you do now?

Dries Van Liefde
Dries Van Liefde
Server rack in a data centre, symbolising the PHP2Shell vulnerability affecting web servers

In this article

Short answer

PHP2Shell is the name given to two critical vulnerabilities in PHP: CVE-2026-109618 and CVE-2026-109619 (CVSS 9.2). An attacker can run code on your web server without logging in. All PHP versions from 5.4 up to and including 8.5.11 are vulnerable. Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 and restart all PHP processes. If you run PHP 8.1 or older, there is no official fix and you need to upgrade.

What is PHP2Shell?

PHP2Shell is a combination of two flaws in the core of PHP, the programming language that powers WordPress, WooCommerce, Drupal and Joomla, among others. Together they let an attacker run code on your server remotely (remote code execution). No account or password is needed.

  • CVE-2026-109618: when PHP runs out of memory while starting up a request, half-created data is left behind that is later treated as valid.
  • CVE-2026-109619: data from a request lingers in freed memory, so the next request on the same process can use that old data.

The vulnerability was discovered by security firm Calif, with help from an OpenAI AI model, and by Wiz Research. It received a CVSS score of 9.2 out of 10: critical.

Why does it affect 70% of all websites?

According to W3Techs, around 70% of all websites whose server-side language is known run on PHP. The flaw is not in a single plugin or CMS but in PHP itself. As a result, almost every PHP setup is affected: PHP-FPM, Apache with mod_php (the biggest risk), php-cgi, LiteSpeed and FrankenPHP.

According to Cisco, around half of the PHP installations reachable from the internet run a version that is too old for an official fix. Palo Alto Networks counted 22.6 million exposed PHP servers.

Which PHP versions are vulnerable?

CVEs
CVE-2026-109618 and CVE-2026-109619
Severity
CVSS 9.2 (v4.0), critical
Type of attack
Remote code execution, without logging in
Vulnerable
PHP 5.4 up to and including 8.5.11
Safe versions
8.5.12, 8.4.27, 8.3.36 and 8.2.35
No official fix
PHP 8.1 and older (some Linux distributions offer a backport for 7.4, 8.0 and 8.1)
Patch available
21 October 2026, 14:00 UTC

How did it unfold, day by day?

  1. The US government is notified.
  2. Details of the vulnerability leak out via social media.
  3. PHP releases an emergency update, a day earlier than planned. The same day, watchTowr sees the first attack attempts and Cloudflare adds WAF rules.
  4. CISA (US), the NCSC (UK) and agencies in Canada, Australia and the EU call for immediate patching, or for taking the site offline if that is not possible.

What does it mean for Belgian websites?

The Centre for Cybersecurity Belgium (CCB) advised updating as soon as possible. At the time of publication, the CCB had not yet seen any attacks in Belgium.

Even so, many organisations decided to play it safe. VRT, DPG Media sites, the FPS Finance, Smartschool, several hospitals, the City of Ghent and VDAB, among others, took websites or parts of them offline as a precaution until the update had been rolled out.

What should you do now?

  1. Check your PHP version. Look in your hosting control panel or in WordPress under Tools > Site Health > Info > Server.
  2. Update to a safe version. Choose 8.5.12, 8.4.27, 8.3.36 or 8.2.35. On 8.1 or older? Plan an upgrade straight away.
  3. Restart all PHP processes. Only after a restart of PHP-FPM or the web server is the new version actually running.
  4. Can’t patch? Restrict access. Put the site behind a login or IP filter, or take it offline temporarily.
  5. Turn on extra protection. A WAF (such as Cloudflare) and a limit on request size make abuse harder.
  6. Check that your site has not been hacked. Look for unknown files, new administrators or strange scheduled tasks.
  7. Map all your PHP installations. Don’t forget test and staging sites, old microsites and internal tools.

I have a WordPress site. Am I affected?

Probably, because WordPress runs on PHP. Important: it is about the PHP version on your server, not your WordPress version or your plugins. A WordPress update does not fix this vulnerability.

If your site is on shared hosting, your provider usually carries out the update itself. Check with them anyway. If you have your own server or VPS, you or your web agency need to do the update.

Frequently asked questions

Should I take my website offline?

Only if you cannot update PHP quickly. If you can patch within a few hours, do it straight away. If not, restrict access to your site or take it offline temporarily, as CISA and the UK’s NCSC advise.

Is a WordPress update enough?

No. The flaw is in PHP itself, the language WordPress runs on, not in WordPress or a plugin. You need to update the PHP version on the server and restart all PHP processes.

How do I know which PHP version my website uses?

Look in your hosting control panel, or in WordPress under Tools > Site Health > Info > Server. Not sure? Ask your hosting provider or web agency.

My hosting provider handles the updates. Do I still need to do anything?

Check whether the update to a patched version has been done and whether all PHP processes have been restarted. On shared hosting the provider usually takes care of this. On your own server or VPS, you are responsible.

Has my site been hacked if it was vulnerable?

Not automatically. Attack attempts have been seen since 21 October, though. If your site ran on a vulnerable version for a while, have it checked for unknown files, administrators or scheduled tasks that have been added.

Sources

  1. VRT NWS: Verschillende websites offline na lekken in programmeertaal PHP (21/10/2026, in Dutch)
  2. Google Cloud: security bulletins on the PHP vulnerabilities
  3. watchTowr: PHP CVE-2026-109618 FAQ
  4. Cybersecurity Dive: PHP website vulnerabilities
  5. NCSC (UK): Critical security issue affecting PHP
  6. Canadian Centre for Cyber Security: alert AL26-026 on PHP
  7. De Orkaan: Het PHP-lek voor dummies (in Dutch)
  8. W3Techs: Usage statistics of PHP for websites

Last updated: 24 October 2026

Dries, managing director at Buro 86
Book a call

Questions after reading this article?

Contact us or make an appointment. We are happy to look together at what this means for your website.