Skip to content
OSULZER.AT
Security10 min read· updated October 21, 2026

PHP2Shell: Critical PHP Vulnerability - What Website Owners Need to Do Now

PHP2Shell (CVE-2026-109618, CVE-2026-109619) allows remote code execution in every PHP version since PHP 5. What it means for WordPress, Shopware and co.

On October 20, 2026, details about two critical security vulnerabilities in PHP leaked to the public - one day before the developers had planned to fix them. The vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619, allow attackers to run their own code on the server remotely. According to current information, every PHP version since PHP 5 is affected - and with it every website and application that runs on PHP: from WordPress and WooCommerce to Shopware, TYPO3 and Joomla to custom Laravel applications.

This article explains what is known, how to check whether your website is protected, and why older PHP versions have now become a real problem.

No time to take care of it yourself? I will check your website and handle the switch to a current PHP version:

What is known about PHP2Shell?

In the security community, the two vulnerabilities go by the name “PHP2Shell”. They became known through a post on Hacker News that was deleted shortly afterwards - but by then, screenshots were already circulating. The security company watchTowr was able to reproduce one of the vulnerabilities, and the PHP team then moved the planned update forward by one day.

The key facts:

  • CVE-2026-109618 and CVE-2026-109619, both rated with a CVSS score of 9.2 out of 10
  • Type of vulnerability: remote code execution - attackers can run malicious code over the network, according to CERT-EU possibly without authentication
  • Affected: all PHP versions since PHP 5
  • Updates: available since October 21, 2026 - PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35

In its advisory 2026-018, the EU’s cybersecurity service CERT-EU recommends immediate patching. heise expects working attack tools to appear within hours, at the latest within a day. No exploitation in the wild is known so far - but that is likely to change quickly once the technical details are public. You will find all details about the updates in the follow-up post PHP2Shell: The Security Updates Are Out.

How an attack via PHP2Shell works and why a memory error can lead to a server takeover is explained with interactive diagrams in PHP2Shell explained.

Does this affect my website?

Yes, if it runs on PHP - and most websites and online shops do. The vulnerability is in PHP itself, not in any particular system. That is why it does not matter which CMS, plugins or theme you use. Affected are, among others:

  • Content management systems: WordPress, TYPO3, Joomla, Drupal, Contao, Statamic, October CMS and Winter CMS
  • Online shops: WooCommerce, Shopware, Magento or Adobe Commerce, PrestaShop and OXID
  • Frameworks and custom development: Laravel, Symfony, CodeIgniter and custom PHP applications such as customer portals or APIs
  • Tools on the server: for example Nextcloud, Matomo, Moodle, Roundcube or phpMyAdmin

Websites that do not use PHP at all - such as purely static sites or applications written in other languages - are not affected. But if even a single PHP tool runs on the same server, the server is vulnerable.

What matters is who updates PHP on your server:

  • Web hosting (shared hosting, managed WordPress): Your host installs the update. You cannot patch PHP yourself, but you can choose your website’s PHP version - and that is exactly where the risk lies (see below).
  • Your own server (VPS, root server, Plesk): You are responsible yourself. The updates come through your Linux distribution’s package repositories or through Plesk.

The real problem: outdated PHP versions

Security updates are only available for PHP versions that are still officially supported. Anything that has reached its end of life remains permanently vulnerable.

PHP version Security updates until Update against PHP2Shell
8.5 end of 2029 yes
8.4 end of 2028 yes
8.3 end of 2027 yes
8.2 end of 2026 yes
8.1 ended (end of 2025) no
8.0 ended (November 2023) no
7.4 and older ended no

For PHP 7.4, 8.0 and 8.1, the PHP team has only published source code patches because of the severity of the vulnerabilities. These only help if you compile PHP yourself - for websites on regular web hosting, they change nothing.

Many websites - especially older WordPress, Joomla or TYPO3 installations and grown custom applications - still run on PHP 7.4 or 8.0. Often because a switch once failed due to old plugins, extensions or code and nobody thought about it again afterwards. Some hosts continue to offer old versions for an extra fee as “extended support”. Whether and when these providers deliver the fix for PHP2Shell is something you need to ask your host directly.

How to check your PHP version

In the WordPress dashboard:

  1. Go to Tools → Site Health.
  2. Switch to the Info tab.
  3. Expand the Server section - it shows the PHP version, for example 8.3.36.

In your hosting panel: In Plesk, cPanel and most customer portals, you will find the PHP version in your domain’s settings (usually under “PHP settings” or “PHP version”). This works regardless of which system runs on the domain - for Shopware, TYPO3, Joomla or a custom application, it is usually the quickest way.

On your own server: The command php -v shows the command-line version. Note: the website may use a different PHP version (for example via PHP-FPM) - so also check the settings of the web server or the domain.

Pay attention to both parts of the version number: the first two digits (e.g. 8.3) show whether your version is still supported. The last digit shows whether the security update has already been installed.

What you should do now

1. Check your PHP version - as described above.

2. On PHP 8.2 or newer: make sure the update is installed. Many hosts install security updates automatically. Check in the days after October 21 whether the version number has gone up - or ask support when the update is coming. Why the version number can be misleading on Debian and Ubuntu is explained in the follow-up post. On your own server, install your distribution’s updated packages (e.g. apt update && apt upgrade on Debian and Ubuntu) or the PHP updates in Plesk, and restart PHP-FPM or the web server.

3. On PHP 8.1 or older: plan the switch - quickly. Do not simply change the PHP version in your hosting panel and hope for the best. A jump across several versions regularly takes websites down - whether WordPress, Shopware or a custom Laravel application. It is usually caused by outdated plugins, extensions or code written for older PHP versions. I have described in detail what typically goes wrong with WordPress and how to fix it in WordPress Down After PHP Upgrade from 7.4 to 8.2+. The safest approach is to test on a copy of the website (staging) before the live site is switched.

4. Create a backup. Before any switch - and especially now - you should have a current, complete backup of files and database that is not stored only on the same server.

5. Watch for signs of an attack. See the next section.

How do I know if my website has been attacked?

With vulnerabilities of this kind, attackers usually upload a so-called web shell - a small PHP file they use to control the server remotely. Typical signs:

  • PHP files in places where they do not belong - for example in upload folders such as wp-content/uploads/ in WordPress or fileadmin/ in TYPO3
  • new or recently changed files in the website directory that you did not create yourself
  • unknown administrator accounts in the backend of your CMS or shop
  • redirects to third-party sites or spam content, often shown only to visitors coming from Google
  • new cron jobs in the hosting panel or on the server
  • a warning from your host about suspicious processes or spam being sent

On your own servers, it is worth looking at processes started by PHP or the web server: shells (sh, bash) or tools like curl, wget or nc running as a child process of php-fpm or apache2 are a clear warning sign.

Do you suspect something? Then take the website offline, secure the logs and have it checked thoroughly - simply restoring a backup is often not enough if the vulnerability stays open.

Does changing the php.ini help?

Shortly after the vulnerability became known, a tip circulated to set session.upload_progress.enabled = 0 in the php.ini. heise initially considered this setting ineffective. According to the PHP team’s security advisory published since then, it blocks at least some of the attack paths - but not all. There is no reliable workaround: only updating to a patched PHP version protects you. The workarounds the PHP team names are listed in the follow-up post.

I will help you with the switch

A PHP switch is different for every website: how much work it takes depends on which system it uses, how old the plugins, extensions and custom code are and which version the website runs on today. I do not only take care of WordPress, but also of shops, Laravel applications and other PHP systems such as Joomla or TYPO3. That is why I look at your website first and then tell you what needs to be done and how much effort to expect. I test the switch itself on a copy before the live site is changed.

Sources

WordPress Maintenance

So it never comes to that

Tested updates, daily backups, and malware protection - from €40 per month.

See maintenance

New project?

Contact.

Tell me briefly about your project - I'll get back to you personally.

Your data is used solely to handle your inquiry. More in the privacy policy.