PHP2Shell: what is behind CVE-2026-109618 and CVE-2026-109619 and what to do now

On 21 October 2026 the PHP project released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow unauthenticated remote code execution. According to the US agency CISA, they are known as “php2shell”. If you use PHP to serve web requests, update now to one of these versions or to your distribution’s patched package, take stock of every PHP installation, including embedded ones and those in container images, and then check that the running processes really execute the new code. In this article I summarise what the official sources say.

What happened?

On 20 October the PHP security team announced a security release for 21 October at 14:00 UTC. PHP rates both vulnerabilities CVSS v4.0 9.2. According to PHP, Linux distributions and LTS vendors received the patches in advance. On 26 October CISA added both CVEs to its Known Exploited Vulnerabilities (KEV) catalog.

According to the PHP advisory, this is what lies behind the CVEs:

  • CVE-2026-109618 (GHSA-w8hw-w9fx-j79w), code execution via corruption after running out of memory: an out-of-memory error can interrupt PHP while internal request data is only partially initialised. Request cleanup may then treat that invalid data as valid.
  • CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp), code execution via stale global state: internal state owned by a request can survive after its memory has been freed. A later request handled by the same worker may use that state before normal initialisation resets it.

Who is affected?

According to PHP, all PHP installations serving web requests are at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP considers the risk highest for mod_php: there is a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs. The advisory for CVE-2026-109619 also describes a validated path via PHP-FPM, although it depends on a suitable operation in the application.

It is not just websites. CISA points out that PHP is often a component of other software and that its presence may not be directly observable. The Dutch NCSC names appliances, network devices, management interfaces and other vendor products where administrators may not be able to update PHP themselves. NCSC-NL maintains a list of such products and their status on GitHub.

What should you do now?

Update. PHP names updating to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 as the only complete solution. If you get PHP from your distribution, use your vendor’s package. The definitions of the official PHP Docker images (docker-library/php) were moved to these versions on 21 October.

Take inventory. CISA recommends identifying every system running any version of PHP and patching internet-facing systems first. NCSC-NL advises checking third-party images, appliances and embedded runtimes separately and applying vendor updates for products that bundle PHP as soon as they are available.

Replace old versions. PHP 8.1 and older no longer receive updates from the PHP project. Given the severity, the PHP security team still provided minimal source backports for PHP 7.4, 8.0 and 8.1, for people building from source or without access to an LTS vendor. Some distributions and LTS vendors also provide backports. CISA goes further: organisations that cannot update immediately, or that still run PHP 8.1 or older, should take PHP-based systems offline until they are patched. PHP 8.2 is also running out: it receives no security fixes after 31 December 2026.

Turn off upload progress. On 23 October PHP published an additional advisory. In it, PHP suggests setting session.upload_progress.enabled=0 until the next regular bugfix release to fully protect against an unlikely attack vector tracked as CVE-2026-115560. It requires an unusual combination of configuration and application code. According to PHP, applications that never change the session serialize handler at runtime can keep the feature enabled. If you set it, do so in php.ini, the FPM pool or the server configuration, not via ini_set() or an FPM .user.ini:

session.upload_progress.enabled = 0

Afterwards every worker has to be restarted. According to the PHP manual, php.ini is read when PHP starts up, and for the server modules only once when the web server starts.

What helps if you cannot update yet?

PHP lists measures for this case but stresses that they only reduce exposure to specific attack paths and do not make an installation safe. Against CVE-2026-109618, PHP recommends among other things memory_limit=-1, preferably set in a way applications cannot override, for example with php_admin_value in the FPM pool or the Apache configuration, and a low post_max_size. Against CVE-2026-109619, session.upload_progress.enabled=0 and, on PHP 8.5, fatal_error_backtraces=0, each with a restart of every worker, block the confirmed session and fatal error backtrace paths, but no other variants. According to PHP, hiding diagnostics with error_reporting, display_errors or @ does not help. CISA additionally names a web application firewall as possible partial protection until the update.

How do you check whether a server is patched?

According to the PHP manual, php -v on the command line shows the SAPI name and the version. That is the version of the command-line SAPI. On distributions, PHP-FPM and mod_php come in their own packages, for example php8.3-fpm and libapache2-mod-php8.3 on Ubuntu. That is why it is worth checking each of these packages. For the web server itself, a check through a web request is more meaningful: phpversion() returns the version of the currently running PHP.

The difference between the upstream version and the distribution package matters. Some distributions backport security fixes into older versions instead of moving to the new upstream version. An example from Ubuntu notice USN-8948-1 of 21 October: on Ubuntu 24.04 LTS the issue is fixed in package 8.3.6-0ubuntu0.24.04.13. The upstream version in the package stays 8.3.6, even though the fix is included. What counts is the package version, compared with your own distribution’s security notice.

If you use the PHP builds for Windows, also install the builds from 26 October with the -1 suffix. They include Brotli 1.2.1 against a separate Brotli vulnerability, CVE-2026-111497, which can be reachable in the Windows builds through the cURL extension when automatic HTTP response decompression is enabled. It is off by default in cURL, but applications and HTTP client libraries can turn it on. The PHP version itself does not change.

What I take away

  • Updating is the only complete solution. According to PHP, all configuration measures are partial protection.
  • The inventory is the real work: servers, container images, appliances and products with embedded PHP.
  • Set session.upload_progress.enabled=0 until the next regular bugfix release, in the startup configuration, and restart every worker.
  • Check the patch level against your distribution’s package, not just the version number, and on the running web server, not just on the command line.
  • Replace PHP 8.1 and older and plan the move away from PHP 8.2 before 31 December 2026.
  • CISA also advises watching for suspicious activity, such as PHP worker processes launching shells or downloading tools.

All articles

Legal Notice

DIGITALPASSION Ltd.

Tassou Papadopoulou 16
House 2
8270 Tremithousa, Cyprus
Email:
info@kevin-damiani.de
Register Number:
HE 454538
Represented by:
Kevin Damiani
VAT ID:
CY60039739L

IT Liability Insurance

exali AG
Franz-Kobinger-Str. 9, 86157 Augsburg

Dispute Resolution

We are not willing or obliged to participate in dispute resolution proceedings before a consumer arbitration board.

Liability for Content

As a service provider, we are responsible for our own content on these pages in accordance with general laws. However, liability is only possible from the time of knowledge of a specific infringement.

Copyright

The content and works created by the site operators on these pages are subject to German copyright law. Downloads and copies of this site are only permitted for private, non-commercial use.

Privacy Policy

The protection of your personal data is important to us. This privacy policy informs you about the processing of personal data on this website and in the iPad app DrawBook (see DrawBook).

Data Controller

Responsible for data processing on this website and in the DrawBook app is:

DIGITALPASSION Ltd.
Tassou Papadopoulou 16, House 2, 8270 Tremithousa, Cyprus
Email: info@kevin-damiani.de

Hosting

This website runs on our own server at Hostinger International Limited, 61 Lordou Vironos Street, 6023 Larnaca, Cyprus, in the data center in Frankfurt am Main; Hostinger processes the data on our behalf (Art. 28 GDPR). To deliver the page, our web server processes your IP address, the time, the page viewed and the referring page, and your browser identifier. It keeps no access log; it passes page views on only in shortened form for web analytics (see Web Analytics). If it cannot deliver the page, it writes an error line with the time, the page viewed and the referring page (both without parameters after the "?"), your browser identifier and your IP address shortened to the first 24 bits (IPv4) or 48 bits (IPv6). These lines are overwritten continuously: we keep at most 30 MB of them, and older ones are dropped as new ones arrive, so there is no period in days. In addition, Hostinger backs up the whole server once a week in a data center in Lithuania and keeps the two most recent backups. The legal basis is our legitimate interest in providing the website securely and reliably (Art. 6(1)(f) GDPR). You are not obliged to provide this data; without the transmission of your IP address, however, the website cannot be delivered.

Cookies and local storage

This website does not set any cookies and stores nothing in your browser's storage (neither localStorage nor sessionStorage). No identifiers for recognizing you are stored on your device, and there are no entries from third parties; how we count visits is described under Web Analytics.

Web Analytics

So that we know how often this website is visited, where visitors come from and which language version they read, our web server (see Hosting) evaluates each successfully loaded page view. No script runs in your browser for this, no cookies are set and nothing is read from or stored on your device. If your browser sends the Global Privacy Control or Do Not Track signal, the page view is not counted. It shortens the IP address (for IPv4 without the last byte, for IPv6 only the first 48 bits) and passes it on, together with the time, the page viewed, the referring page (both without parameters after the "?"), the browser identifier and the name of this website, to our own analytics software Umami, which runs on the same server (see Hosting). It does not pass on other details of the request, such as the language setting, and it writes no log in doing so. Umami stores neither the IP address nor the browser identifier, but derives browser, operating system and device type as well as country, region and city from them, plus page, referrer and time. It groups page views into visits using an identifier calculated from the shortened address, the browser identifier and a secret key that changes every day; page views from different days therefore cannot be linked. Umami does not count page views from recognizable bots. Umami deletes the data after 363 days. Backups are stored encrypted on a server we run ourselves in Cyprus and mirrored from there to storage in Germany that we also run ourselves; no copy is older than 400 days. We do not pass the data on to third parties. The legal basis is our legitimate interest in knowing the reach of the website and improving it (Art. 6(1)(f) GDPR); you can object under Art. 21 GDPR (see Your Rights), most easily by turning on Global Privacy Control or Do Not Track in your browser.

Fonts

This website uses locally hosted fonts (self-hosting). No connections are made to external servers such as Google Fonts.

Contact

If you contact us by email, your information will be stored for processing the request and for possible follow-up questions. We receive and store emails with our processor Fastmail Pty Ltd, Australia; there is no adequacy decision of the European Commission for Australia, so the transfer is based on the EU Standard Contractual Clauses in Fastmail's data processing agreement (available at fastmail.com/policies/dpa). Beyond that, we will not share this data without your consent. The legal basis is Art. 6(1)(b) GDPR if your request aims at concluding or performing a contract, otherwise our legitimate interest in answering it (Art. 6(1)(f) GDPR). We delete the data once the request has been dealt with, unless statutory retention obligations apply. Providing your information is voluntary; without an email address we cannot reply to you.

DrawBook

DrawBook is a free note-taking and drawing app for iPad that DIGITALPASSION Ltd. offers on the App Store. We run no server for DrawBook: we receive neither your notebooks nor your AI requests or API keys. The app needs no DrawBook account, and it contains no analytics, no advertising and no tracking.

Notebooks, drawings, typed text and imported PDF pages stay on your device, in the app's protected storage, and are excluded from automatic device backups. If you export or share something, you decide where the copy goes. Deleting the app also deletes its notebooks.

You can also use the AI chat "Drawing AI". It only works with your own API key for OpenRouter, Ollama Cloud, Anthropic (Claude) or OpenAI; the app stores the key in your device's Keychain. Nothing is sent until you tap "Activate" under "AI configuration" and confirm the dialog that follows. This consent applies to the selected provider, model and image setting, and the app checks it before and after every request. "Deactivate" withdraws it, and "Remove Saved API Key" deletes the key.

Requests go over HTTPS directly from your device to the selected provider (openrouter.ai, ollama.com, api.anthropic.com or api.openai.com). They contain your prompt, the recent conversation and a summary of the page. When the AI reads the page, editable objects such as typed text and shapes are added, along with handwriting recognized on your device and the coordinates of your strokes. If "Send Page as Image to AI" is on (off by default), the AI can also request an image of the page, including an imported PDF background. OpenRouter may forward a request to the actual model provider.

DIGITALPASSION does not receive this data. The app transfers it only with your consent (Art. 6(1)(a) GDPR) to the provider, which processes it under its own terms as an independent controller. How long the provider keeps it is set by its terms; you exercise your rights regarding data it has already received with the provider. DrawBook keeps the chat history only in memory, and "New thread" clears it. We answer privacy questions about DrawBook at info@kevin-damiani.de.

Your Rights

You have the right to:

  • Information about your stored data (Art. 15 GDPR)
  • Correction of inaccurate data (Art. 16 GDPR)
  • Deletion of your data (Art. 17 GDPR)
  • Restriction of processing (Art. 18 GDPR)
  • Data portability, where processing is based on consent or a contract and carried out by automated means (Art. 20 GDPR)
  • Withdrawal of consent given, at any time and with effect for the future (Art. 7(3) GDPR)

In case of complaints, you can contact the responsible data protection supervisory authority (Art. 77 GDPR).

Right to object

Where we process data on the basis of legitimate interests (Art. 6(1)(f) GDPR), you can object at any time on grounds relating to your particular situation (Art. 21 GDPR). An informal email is sufficient.

SSL Encryption

This website uses SSL encryption for security reasons. You can recognize an encrypted connection by the lock symbol in your browser's address bar.

Changes

We reserve the right to adapt this privacy policy to changes in the law or in the service.

Last updated: November 2026