CVE monitoring and patch operations instead of finding out by accident - WZ-IT records where PHP runs in your environment, applies updates and then checks systems and containers. Book an intro call · Server audit · Nextcloud operations
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution: CVE-2026-109618 and CVE-2026-109619, each CVSS 4.0 9.2, called PHP2Shell in reports. The PHP project published the updates on 21 October 2026, ahead of the announced time of 4 pm German time. There is no complete remedy other than the update. The BSI rates the situation 3 of 4 (orange): measures must be taken without delay.
Every PHP installation that serves web requests is affected. That includes Nextcloud, WordPress, Drupal, TYPO3, Matomo, Moodle, Shopware and every other application on PHP as long as its PHP runtime is not patched. This article lists the most common ones, explains why an application update is not enough and describes the steps.
Table of contents
- In brief
- The two vulnerabilities in detail
- Which software is affected
- Why an application update is not enough
- What to do now
- If you cannot patch immediately
- Outdated PHP versions
- Timeline
- Common misconceptions
- Status and methodology
- Our approach at WZ-IT
- Further guides
In brief
| Question | Answer |
|---|---|
| Identifiers | CVE-2026-109618 (OOM corruption) and CVE-2026-109619 (stale global state), called PHP2Shell in reports |
| Severity | CVSS 4.0: 9.2 each, critical (AV:N/AC:H/AT:P/PR:N/UI:N); BSI criticality 3 of 4 (orange) |
| Type | Remote code execution without authentication and without user interaction |
| Affected | PHP 8.2 before 8.2.35, 8.3 before 8.3.36, 8.4 before 8.4.27, 8.5 before 8.5.12; the BSI and CERT-EU named all versions back to at least PHP 5 in advance |
| Fixed in | 8.5.12, 8.4.27, 8.3.36, 8.2.35; minimal source backports for 7.4, 8.0 and 8.1 |
| Risk | All PHP installations serving web requests: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, LiteSpeed; highest for mod_php |
| Exploitation | A demonstrated exploit for mod_php according to the PHP project, triggerable by an unauthenticated request |
| Workaround | Partial measures only; the update is the only complete solution |
| Measure | Update PHP on system, container and appliance, restart all PHP processes, check the version |
The two vulnerabilities in detail
According to the GitHub advisory, both flaws have the vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H: network access, high complexity, no authentication, no user interaction, high impact on confidentiality, integrity and availability.
| CVE-2026-109618 | CVE-2026-109619 | |
|---|---|---|
| Name in the advisory | RCE via OOM corruption | RCE via stale global state |
| Cause | Out-of-memory handling can interrupt PHP while internal request data is only partially initialized. The subsequent cleanup treats the invalid data as valid. | Request state can survive after its memory has been freed. A later request handled by the same worker can use it before normal initialization resets it. |
| Precondition | An out-of-memory condition during request handling, which according to the advisory can be induced through multipart parsing | The same worker handles several requests; a first operation leaves state behind, a second reads it |
| Confirmed paths | mod_php confirmed, PHP-FPM likely vulnerable | Fatal errors with backtrace (fatal_error_backtraces, PHP 8.5) and session upload progress (session.upload_progress) |
| Fix | 8.2.35, 8.3.36, 8.4.27, 8.5.12 | 8.2.35, 8.3.36, 8.4.27, 8.5.12 |
The PHP project considers the risk highest for mod_php and cites a demonstrated exploit in which an unauthenticated request can trigger the attack before any application code runs.
Which software is affected
The PHP runtime is affected. Applications running on it are exposed as long as PHP is not patched. The BSI lists WordPress, Drupal, TYPO3, Joomla, Magento, Nextcloud, pfSense and OPNsense as projects developed in PHP. The table below classifies common open source applications.
| Application | Use | Note for operators |
|---|---|---|
| Nextcloud | File storage, collaboration | PHP from the system or from the container image; pull the image again |
| WordPress | Websites, blogs, shops | Update PHP at the host or on the server |
| Drupal | Content management | PHP update on the web server |
| TYPO3 | Content management | PHP update on the web server |
| Joomla | Content management | Named by the BSI; PHP update on the web server |
| Magento | Online shop | PHP update on the backend server or in the container |
| Shopware | Online shop | PHP update on the backend server or in the container |
| Matomo | Web analytics | PHP update on the web server |
| Moodle | Learning platform | PHP update on the web server |
| BookStack | Wiki | PHP update or rebuild the image |
| Snipe-IT | Asset management | PHP update or rebuild the image |
| GLPI | IT service management | PHP update on the web server |
| mailcow | Mail server suite | Web interface in PHP, update through the containers |
| Coolify | Deployment platform | Coolify v4 is itself affected; per the Coolify advisory update to v4.4.7 and patch the PHP runtimes or images of your own applications separately |
| pfSense and OPNsense | Firewalls | Web interface in PHP; wait for the vendors' firmware update, see OPNsense patch operations |
That these applications are written in PHP is evident from the projects, for example Nextcloud, Matomo, Moodle, BookStack, Snipe-IT, GLPI and mailcow.
In addition, according to the BSI, PHP is also found in individual components of proprietary products. Companion services such as phpMyAdmin or webmail clients also run on PHP and belong in the inventory. The PHP project does not name pure command-line use of PHP without web requests as a risk.
Why an application update is not enough
The flaws are in PHP, not in WordPress or Nextcloud. Three consequences follow:
- The runtime decides. The package or image that provides PHP must be patched, and all PHP processes must then restart so the new state is running. Updating the application itself changes nothing about that.
- Every layer counts separately. The BSI points out that containers must be updated or rebuilt independently of the host and that appliance vendors must publish new firmware with patched PHP. One server can run several PHP versions and several containers at once.
- Version numbers mislead with backports. Debian, Ubuntu and Red Hat often ship security fixes as backports with an unchanged major version. Comparing against the distribution's advisory (Ubuntu, Debian) is therefore more reliable than comparing version numbers alone.
What to do now
1. Clarify the inventory.
- Record on which servers, in which containers and appliances PHP runs.
php -vshows the command-line version; the web server may use a different one, for examplephp-fpm8.3 -vfor PHP-FPM. - Determine which of these systems are reachable from the internet and treat systems with mod_php first, because the PHP project sees the highest risk there.
- Make sure current backups exist.
2. Patch and verify.
- Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, depending on the branch in use. Source and Windows binaries are on the PHP downloads page.
- Update system packages, for example on Debian or Ubuntu with
apt updateandapt list --upgradable | grep -i php, and compare the state with the distribution's advisory. The PHP project states that distributions and LTS vendors received the patches in advance. - If you use the repository rpms.remirepo.net, the PHP project says to switch to distribution packages or build from source, because the repository will not provide updates that day.
- Containers: pull or rebuild the base image with the fixed PHP version, recreate the container, check the version inside the container. A host update does not replace that.
- Restart PHP-FPM and the web server if the package does not do it itself, and check the state again.
- Appliances: apply the vendors' firmware updates as soon as they appear.
3. Observe. The BSI recommends watching exposed PHP web servers more closely for anomalies. Before publication the BSI did not recommend any binding indicators of attack. As general hygiene, recently changed or new PHP files in web and upload directories, crashed PHP workers and unusual requests in the web server logs can be checked.
If you cannot patch immediately
The PHP project stresses that only the update protects completely. The following measures from the advisory reduce the attack surface for specific paths but do not make an installation safe.
Against CVE-2026-109618 (OOM corruption):
- Set
memory_limit=-1, preferably in a way applications cannot override, such asphp_admin_valuein the FPM pool or the Apache configuration, and check that no pool, directory or application setting puts a limit back. This removes the controllable memory-limit failure; an underlying allocation failure can still reach the vulnerable path. - Keep
post_max_sizelow: 8M if the application needs no uploads, otherwise 32M. Keepupload_max_filesizebelow it. - Consider limits at the web server or proxy: decoded request size, number of input fields, number of multipart parts, number of headers and nesting depth. The limits must also cover requests without a usable Content-Length.
- Use a container or cgroup limit as an availability boundary, preferably with a policy that kills only the affected worker.
RLIMIT_ASandRLIMIT_DATAare no substitute because they can trigger the vulnerable allocation failure.
Against CVE-2026-109619 (stale global state):
- Set
session.upload_progress.enabled=0and restart all workers, inphp.ini, in the FPM pool or in server configuration that applies before request parsing. Do not rely onini_set()or.user.ini. This blocks the confirmed session paths but not other variants. - On PHP 8.5 set
fatal_error_backtraces=0and restart all workers. This blocks only the confirmed fatal-error path. - Remove invalid or deprecated settings applied per request that emit diagnostics before initialization.
error_reporting,display_errorsor@merely hide the messages and do not help. - Fix fatal errors and execution timeouts that attackers can reach, including in callbacks and in upload, import and cleanup code. According to the GitHub advisory,
pm.max_requests=1can also be considered so that no worker handles several requests.
Organisational: The BSI recommends keeping access to web applications restrictive and hardening components. For systems that cannot be patched at short notice, it names temporary disconnection of the web server from the internet. A web application firewall supplements the patch but does not replace it.
Outdated PHP versions
According to the PHP project, PHP 8.1 and older no longer receive updates. Because of the severity, the project provided minimal source backports for 7.4, 8.0 and 8.1 for operators who build from source or have no LTS vendor. Some distributions and LTS vendors ship backported fixes; the vendor names the details. According to the BSI, all PHP versions before 8.2 have reached end of support, and 8.2 receives security updates only until the end of the year.
According to php.net, the security branches run until 31 December 2026 for 8.2, 31 December 2027 for 8.3, 31 December 2028 for 8.4 and 31 December 2029 for 8.5. Operators of applications on PHP 7.4, 8.0 or 8.1 should plan the migration to a supported branch. The backports and distribution fixes are a stopgap.
Timeline
| Date | Event |
|---|---|
| 24 September 2026 | Previous regular security releases: 8.5.11, 8.4.26, 8.3.35, 8.2.34 |
| 20 October 2026 | PHP project announces a security release for two critical flaws, each CVSS 4.0 9.2; subject to an earlier date |
| 20 October 2026, 22:33 CEST | CERT-EU publishes advisory 2026-018 |
| 21 October 2026 | BSI publishes warning and press release, criticality 3 of 4 |
| 21 October 2026, before 4 pm CEST | PHP publishes 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with advisory, ahead of the announced time of 4 pm (14:00 UTC) |
Common misconceptions
- "My application is up to date, so I am safe." No. The flaw is in PHP. An up-to-date WordPress or Nextcloud on unpatched PHP stays exposed.
- "Host patched, container safe." No. Containers carry their own PHP and must be rebuilt.
- "With
session.upload_progress.enabled = 0I am protected." No. The setting blocks only the confirmed session paths of CVE-2026-109619, not other variants and not CVE-2026-109618. The PHP project names the update as the only complete solution. - "I use PHP-FPM, not mod_php, so this does not affect me." No. The PHP project also names PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. mod_php merely carries the highest risk.
- "I can wait until Friday." The BSI considered broad exploitation within a few hours of the patches appearing likely, and a demonstrated exploit exists for mod_php.
- "This only affects WordPress." No. Every application on PHP is affected, including administration interfaces, webmail and firewalls with a PHP web interface.
Status and methodology
Status 21 October 2026, after the patches were published; supplemented on 26 October 2026 with the Coolify advisory. The information comes from the PHP project's security advisory of 21 October, the GitHub advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp, CERT-EU advisory 2026-018, the BSI warning 2026-297981-1032 and the overview of supported PHP versions. When this article was published, the Ubuntu tracker listed the CVE without fixed package states and the Debian tracker had no entry yet. The assignment of applications is based on the programming language of the projects. Whether individual installations can be attacked depends on version, server interface and configuration; the number of affected systems is not established.
Our approach at WZ-IT
- Inventory: We record where PHP runs in your environment: servers, containers, appliances and the version the web server actually uses.
- Patching: We apply the PHP updates, rebuild container images, restart the services and verify the state against the advisory.
- Checking: We examine web directories and logs for anomalies and rotate credentials if suspicion arises.
- Operations: In managed operations, updates, CVE monitoring and backups are included; the server audit checks existing systems once.
Does PHP run on more of your systems than you have in mind? In the server audit we record where PHP runs in your environment (servers, containers, appliances) and which version the web server actually uses. In managed operations, updates, CVE monitoring and backups are included. View the server audit · Book an intro call (non-binding and free of charge)
Further guides
- Why companies need CVE monitoring
- Nextcloud Built-in CODE Server: command injection without login (CVE-2026-110447)
- OPNsense 26.1.8: four CVEs in seven days and patch management
- cPanel CVE-2026-41940: mass compromise and sovereign hosting
- Nextcloud operations by WZ-IT
- CVE monitoring
Sources
- PHP: Security advisory - Critical remote code execution vulnerabilities, update now (21 October 2026)
- GitHub advisory GHSA-w8hw-w9fx-j79w: RCE via OOM corruption (CVE-2026-109618)
- GitHub advisory GHSA-6wmf-4rv5-p3rp: RCE via stale global state (CVE-2026-109619)
- PHP: Upcoming Critical PHP Security Release (20 October 2026)
- CERT-EU Security Advisory 2026-018: Critical Vulnerabilities in PHP
- BSI: PHP - Critical vulnerabilities threaten web applications worldwide (BITS-H 2026-297981-1032)
- Coolify: PHP Security Advisory 2026 (PHP2Shell)
- PHP: Downloads
- PHP: Supported Versions
- Ubuntu Security: CVE-2026-109618
- Debian Security Tracker













