php2shell: what website operators should check now

In brief: Two critical vulnerabilities in PHP, nicknamed “php2shell”, can allow attackers to execute their own code on web servers without logging in. Fixed PHP versions have been available since 21 October 2026. If you run websites, shops or internal applications with PHP, you should now clarify the update status in a verifiable way, even if operations are handled by a service provider.

By · Klett IT Beratung Research status: 26 October 2026 · Reading time: approx. 6 minutes

Update of 26 October 2026

The section “How serious is the situation?” reflects the status as of 24 October. Since then, the following has happened:

  • According to a TechCrunch report, Palo Alto Networks and Trail of Bits have reported the first confirmed compromises with subsequent attacker activity in connection with php2shell. The information on Trail of Bits comes from this TechCrunch report. [7]
  • According to The Hacker News, Palo Alto Networks no longer clearly attributes a specifically described attack on a government agency in Europe to the php2shell vulnerabilities. The company therefore cannot confirm that initial access was gained through these vulnerabilities. [8]
  • The picture is therefore mixed. The PHP project’s detailed advisory on CVE-2026-115560 is still pending. The recommendation to set session.upload_progress.enabled=0 until the next regular version remains unchanged. So keep applying the updates and checking your systems. [1]

Key points at a glance

  • On 21 October 2026, the PHP project released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They close the vulnerabilities CVE-2026-109618 and CVE-2026-109619. [1]
  • The German Federal Office for Information Security (BSI) cites a rating of 9.2 out of 10 points (CVSS 4.0). An attack requires neither a login nor user interaction. [2]
  • What matters is a verifiable update status with a restart of all PHP services, even if a hosting provider operates the system.

In many businesses, PHP works in the background without being noticed in everyday work. According to the Swiss Federal Office for Cybersecurity (BACS), the programming language is found not only in public websites but also in admin interfaces, internal business applications, hosting platforms, containers and devices. Sometimes operators do not even know that a product uses PHP. [5] That is exactly why a structured look at your own inventory is worthwhile this week.

Symbolic image: server racks, on one of which a glowing plaster is being stuck as a symbol of a security update (AI curated)
An update only helps if it reaches every affected system. Image: AI curated

What happened?

On 21 October 2026, the PHP project released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They close two vulnerabilities with the identifiers CVE-2026-109618 and CVE-2026-109619. [1] Put simply, these are two bugs in internal memory management:

  • CVE-2026-109618: If PHP runs out of memory while processing a request, half-prepared internal data can later be wrongly treated as valid.
  • CVE-2026-109619: The internal state of a request can remain after the associated memory has already been freed. A later request to the same process may then access these leftovers.

According to the PHP project, this affects all PHP installations that respond to web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The project sees the highest risk with mod_php. [1] The BSI refers to a rating of 9.2 out of 10 points according to CVSS 4.0. According to this, an attack requires neither a login nor user interaction. [2]

How serious is the situation?

The reaction was unusually strong. Many organisations took their websites offline as a precaution as long as no updated packages were available. heise names, among others, Charité and parts of berlin.de. The BSI had recommended this step. [3]

At the same time, many attack attempts are under way. According to heise, Cloudflare reports millions of such attempts. [3] However, at the time of research, no confirmed successful breaches were publicly known: on 23 October, SecurityWeek summarised that several security firms were observing attempts but no confirmed compromise. Sansec now rated the hurdles as higher, because publicly available exploits would fail against default settings. [4] On 22 October, the BSI was also not yet aware of any widespread successful exploitation. [2]

My assessment: this is no reason to give the all-clear. The same source reports a commercial exploit that is said to bypass an important protection feature in typical production environments. [4] So the situation can change quickly. What matters is that your systems are updated and that you can prove it.

New since 23 October: CVE-2026-115560

Two days after the updates, the PHP project described a further, much more narrowly limited attack path. It only occurs with an unusual combination of configuration and application code related to the session feature for displaying upload progress. Until the next regular version, the project recommends setting session.upload_progress.enabled=0. If you already implemented this measure after the first warning, you do not need to do anything else. A detailed advisory on CVE-2026-115560 is to follow with the next release. [1]

At the time of research, no further technical details had been published. I therefore treat this point as provisional.

Five steps for your review

The following order is based on the BACS recommendations and is a practical working aid. [5] Coordinate changes to production systems with the people responsible.

  1. Take inventory: Where does PHP run, in which version, who looks after the system and is it reachable from the internet? Also think of customer portals, the intranet, admin interfaces of devices and applications at external service providers.
  2. Install updates: Install the fixed version of your version branch or the security update from your operating system or product vendor. Important: Linux distributions often backport fixes into existing packages. An unchanged main version therefore does not automatically mean that the patch is missing. What counts is the exact package version and the vendor’s notes.
  3. Restart services: An installed package only takes effect once running PHP processes have been restarted. Containers may need to be rebuilt and redeployed.
  4. Verify the effect: Check which PHP version the running application actually uses. Looking at the installed package alone is not enough.
  5. Look for anomalies: Check the logs: were there suspicious requests or crashes, were files changed, are processes running that do not belong there? An update does not remove an attacker who got in beforehand.

Questions for your hosting provider or agency

If your website is operated externally, the technical implementation usually lies with the service provider. The responsibility for your own website still remains with you. My recommendation: have these points confirmed in writing.

  • Is PHP running on a fixed version or a package that the vendor has identified as fixed?
  • Since when, and were all PHP services restarted afterwards?
  • Is session.upload_progress.enabled disabled, or is there a reason not to?
  • Have the logs been checked for anomalies since 21 October?
  • Are there other systems with PHP, such as test environments or old subpages?

If an immediate update is not possible

The PHP project describes interim measures, such as disabling the upload progress display followed by a restart of all processes. However, it emphasises that such steps only make individual attack paths more difficult and do not make an installation secure. [1] The BACS additionally advises restricting access to affected applications as far as possible and, for critical applications, considering temporarily disconnecting them from the internet. In the BACS’s assessment, a web application firewall alone is not sufficient. [5]

Older PHP versions: plan the switch now

For PHP 8.1 and older, the PHP project no longer provides regular updates. Because of the severity of the vulnerabilities, it has exceptionally provided minimal source code fixes for 7.4, 8.0 and 8.1. These are aimed at operators who compile PHP themselves. Alternatively, some distributions or vendors with long-term support offer their own fixes. [1]

PHP 8.2 will also only receive security updates until 31 December 2026. [6] If you are still working with 8.2 or older, you should plan the move to a supported version now, together with testing your own applications.

What you can clarify this week

Create a short list of all systems with PHP and enter the confirmed update status for each one. Open items get a responsible person and a deadline. If you suspect a breach, this is a security incident: containment, analysis and a controlled restart according to your emergency plan then come first. How to check in advance whether data can actually be recovered in an emergency is described in my article You have a backup – but can the data actually be restored?

Frequently asked questions

What is php2shell?

“php2shell” is the nickname for two critical vulnerabilities in PHP (CVE-2026-109618 and CVE-2026-109619). They affect internal memory management and can allow attackers to execute their own code on web servers without logging in. [1] [2]

Which PHP versions are fixed?

On 21 October 2026, the PHP project released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Linux distributions often backport fixes into existing packages. What counts is therefore the exact package version and your vendor’s notes. [1]

Is it enough if my hosting provider installs the update?

The technical implementation often lies with the service provider, but the responsibility for your website remains with you. Have the update status, the restart of the PHP services and the log review confirmed in writing.

What applies to PHP 8.1 and older?

There are no longer any regular updates for these versions. The PHP project has exceptionally provided minimal source code fixes for 7.4, 8.0 and 8.1. PHP 8.2 will receive security updates until 31 December 2026. [1] [6]

Support with your review

Would you like to go through your PHP inventory, the coordination with your hosting provider or the next steps together? Find out more about IT consulting for SMEs or get in touch directly.

Sources

  1. PHP: News Archive 2026, security advisory of 21 October 2026 and informational advisory on session upload progress of 23 October 2026.
  2. BSI: Version 1.2: PHP – critical vulnerabilities threaten web applications worldwide (in German), cybersecurity warning of 22 October 2026.
  3. heise online: php2shell: updates trickle in, many websites offline, attacks under way (in German), 22 October 2026.
  4. SecurityWeek: Mirai Botnet Operators Join PHP2Shell Attacks as ASLR Bypass Exploits Emerge, 23 October 2026.
  5. BACS: Critical vulnerabilities in PHP: install security updates immediately (in German), 21 October 2026.
  6. PHP: Supported Versions, accessed on 24 October 2026.
  7. TechCrunch: PHP-ocalypse: How two critical web bugs almost broke the internet, 24 October 2026.
  8. The Hacker News: PHP2Shell Exploitation Attempts Continue Amid Suspected N. Korea Global Scanning Activity, 25 October 2026.

✨ Curated and generated with AI, finalized by a human ❤️