---
title: "PHP2Shell: Critical PHP Vulnerability Fixed on 21 October 2026"
description: "PHP2Shell (CVE-2026-109618, CVE-2026-109619) allows unauthenticated RCE. Patch to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Shopify, WooCommerce and Magento: who must act."
url: "https://no7software.co.uk/blog/php2shell-php-vulnerability"
last_modified: "2026-11-21"
---

# PHP2Shell: Critical PHP Vulnerability Fixed on 21 October 2026

## Key takeaways

- PHP2Shell is the name for CVE-2026-109618 and CVE-2026-109619, two critical core PHP flaws that can allow unauthenticated RCE.
- PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released 21 October 2026, fix both; every earlier release on those branches is affected.
- The flaws can also leak process memory, including passwords, tokens and API keys, so we recommend rotating server secrets after patching.
- Ubuntu and Debian have patched packages, including php8.1 on Ubuntu 22.04, which matters for Magento 2.4.4 and 2.4.5 stores.
- Updating WordPress or Magento does not update PHP: install the fixed runtime and restart PHP-FPM, Apache and long-running workers.
- 19 November 2026: PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 are new security releases with further remote code execution fixes, so servers patched for PHP2Shell need to update again.

### Update, 21 November 2026, 11:30 UTC: PHP 8.6.0 is out with the same security fixes as 8.5.13

The PHP project has published [PHP 8.6](https://www.php.net/releases/8.6/en.php), a new feature release. Its [changelog entry for 8.6.0](https://www.php.net/ChangeLog-8.php#8.6.0), dated 19 November 2026, lists the same security fixes as 8.5.13, including CVE-2026-126714, CVE-2026-128090 and CVE-2026-129289. You do not need 8.6 to be protected: 8.5.13, 8.4.28, 8.3.37 and 8.2.36 carry those fixes too. Treat 8.6 as a planned upgrade, not an emergency patch. Check that your WordPress plugins, Magento extensions and custom code support it on staging before you switch.

### Update, 19 November 2026, 14:25 UTC: PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 fix more remote code execution flaws

The PHP team released PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 on 19 November 2026. The [php.net announcements](https://www.php.net/archive/2026.php) call each one a security release and encourage all users of that branch to upgrade. These fixes are separate from PHP2Shell, so a server already on 8.5.12, 8.4.27, 8.3.36 or 8.2.35 needs to update again.

The [PHP change log](https://www.php.net/ChangeLog-8.php#8.5.13) lists 17 security fixes in 8.5.13, 14 in 8.4.28, 13 in 8.3.37 and 12 in 8.2.36. Twelve are in all four branches. They include three that the change log says can lead to remote code execution: a timezone cache use-after-free (CVE-2026-129496), partially overwritten session files (CVE-2026-126714) and a session serializer mismatch (CVE-2026-115560). The same twelve also cover an out-of-bounds read and write in PHP-CGI during PATH_INFO correction (CVE-2026-129538), request smuggling in PHP-FPM through an unread HTTP request body (CVE-2026-129289), a PHP-FPM use-after-free that can lead to local privilege escalation (CVE-2026-129291) and a PHAR OpenSSL signature bypass (CVE-2026-128090).

PHP 8.5.13 also fixes a use-after-free in magic method backtraces that can lead to remote code execution (CVE-2026-129474). Upgrade to the new release on your branch, or install your distribution's updated package when it is published, then restart PHP-FPM or your web server.

### Update, 12 November 2026, 00:45 UTC: Red Hat ships a php8.4 build for RHEL 10.3

Red Hat has released [RHSA-2026:98609](https://access.redhat.com/errata/RHSA-2026:98609), dated 11 November 2026, for Red Hat Enterprise Linux 10.3. Its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619) list the fixed package as `php8.4-8.4.27-2.el10_3.1`. The earlier RHEL 10 fix for this package, RHSA-2026:87071, was built for 10.2. If you run PHP 8.4 on RHEL 10.3, run `dnf update` and restart PHP-FPM and your web server.

### Update, 11 November 2026, 00:37 UTC: Red Hat fixes the php:8.4 stream on RHEL 9

Red Hat has released [RHSA-2026:97880](https://access.redhat.com/errata/RHSA-2026:97880), dated 10 November 2026, for the php:8.4 module stream on Red Hat Enterprise Linux 9. Its [CVE-2026-109618 page](https://access.redhat.com/security/cve/CVE-2026-109618) lists the fixed module as php:8.4-9090020261020151902.9. This was the RHEL 9 stream we noted as still affected. If you run PHP 8.4 from that stream, run `dnf update` and restart PHP-FPM and your web server.

### Update, 30 October 2026, 00:31 UTC: Red Hat erratum for OpenShift Dev Spaces 3.31

Red Hat has added [RHSA-2026:90321](https://access.redhat.com/errata/RHSA-2026:90321) to its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619). It covers Red Hat OpenShift Dev Spaces 3.31, is dated 26 October, and fixes both CVEs in the `devspaces/udi-rhel9:1792708612` container image. If your team runs Dev Spaces workspaces on that image, pull the updated tag. Red Hat still lists the php:8.4 module stream on RHEL 9 as affected.

### Update, 28 October 2026, 06:39 UTC: CISA confirms PHP2Shell is being exploited

On 26 October the US Cybersecurity and Infrastructure Security Agency (CISA) added both PHP2Shell flaws to its [Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-109618): CVE-2026-109618, listed as a PHP memory corruption vulnerability, and CVE-2026-109619, listed as a PHP stale internal request-state vulnerability. CISA adds a flaw to the catalog when it has evidence of exploitation in the wild. The catalog gives US federal civilian agencies a due date of 29 October 2026. For everyone else, the listing means attacks are happening now: update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or to your distribution's fixed package, and check any server that was reachable before you patched it.

### Update, 27 October 2026, 08:55 UTC: PHP rebuilds its Windows packages for the Brotli flaw

On 26 October the PHP team [announced updated Windows builds](https://www.php.net/archive/2026.php#2026-10-26-1): PHP 8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1. They bundle Brotli 1.2.1, which fixes CVE-2026-111497, an out-of-bounds write in Brotli decompression. In PHP Windows builds the vulnerable decoder can be reached through the cURL extension when automatic HTTP response decompression is enabled; cURL disables this by default, but applications and HTTP client libraries can turn it on. The `-1` suffix marks a Windows package rebuild with updated dependencies, so the PHP runtime versions are unchanged. If you run PHP on Windows, install the rebuilt package from the [downloads page](https://www.php.net/downloads.php?os=windows).

### Update, 27 October 2026, 00:29 UTC: Red Hat erratum for the php:8.3 stream on RHEL 9.6 EUS

Red Hat has added [RHSA-2026:89111](https://access.redhat.com/errata/RHSA-2026:89111) to its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619). It is a php:8.3 module stream update for RHEL 9.6 Extended Update Support, issued on 26 October, and it fixes both CVEs. The fixed package is `php-8.3.19-1.module+el9.6.0+25160+f8b750a4.3`. Red Hat still lists the php:8.4 module stream on RHEL 9 as affected.

### Update, 24 October 2026, 17:55 UTC: Red Hat erratum for the php:8.2 stream on RHEL 9.6 EUS

Red Hat has added [RHSA-2026:88834](https://access.redhat.com/errata/RHSA-2026:88834), a php:8.2 module stream update for RHEL 9.6 Extended Update Support, to its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619). It fixes both CVEs and is dated 23 October. Red Hat still lists the php:8.4 module stream on RHEL 9 as affected.

### Update, 24 October 2026, 00:29 UTC: more Red Hat errata, including RHEL 7 ELS

Red Hat has added five more errata dated 23 October to its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619):

| Product | Package | Advisory | Fixes |
| --- | --- | --- | --- |
| RHEL 9.6 Extended Update Support | `php-8.0.30-3.el9_6.2` | [RHSA-2026:88720](https://access.redhat.com/errata/RHSA-2026:88720) | Both CVEs |
| RHEL 9.4 Update Services for SAP Solutions | `php-8.0.30-1.el9_4.2` | [RHSA-2026:88725](https://access.redhat.com/errata/RHSA-2026:88725) | Both CVEs |
| RHEL 9.4 Update Services for SAP Solutions | php:8.2 module stream | [RHSA-2026:88835](https://access.redhat.com/errata/RHSA-2026:88835) | Both CVEs |
| RHEL 9.2 Update Services for SAP Solutions | `php-8.0.30-1.el9_2.2` | [RHSA-2026:88659](https://access.redhat.com/errata/RHSA-2026:88659) | Both CVEs |
| RHEL 7 Extended Lifecycle Support | `php-5.4.16-48.el7_9.1` | [RHSA-2026:88693](https://access.redhat.com/errata/RHSA-2026:88693) | CVE-2026-109619 only |

The RHEL 7 erratum is listed only against CVE-2026-109619, so check its advisory before treating a RHEL 7 server as fully patched. Red Hat still lists the php:8.4 module stream on RHEL 9 as affected.

### Update, 23 October 2026, 14:15 UTC: Red Hat errata for extended support releases

Red Hat has added four errata dated 23 October for RHEL minor releases on extended support. Its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619) now list:

| Product | Package | Advisory |
| --- | --- | --- |
| RHEL 10.0 Extended Update Support | `php-8.3.19-1.el10_0.2` | [RHSA-2026:88561](https://access.redhat.com/errata/RHSA-2026:88561) |
| RHEL 8.8 Telecommunications Update Service and Update Services for SAP Solutions | php:7.4 module stream | [RHSA-2026:88532](https://access.redhat.com/errata/RHSA-2026:88532) |
| RHEL 8.6 Advanced Mission Critical Update Support and EUS Long-Life Add-On | php:7.4 module stream | [RHSA-2026:88533](https://access.redhat.com/errata/RHSA-2026:88533) |
| RHEL 8.4 Advanced Mission Critical Update Support and EUS Long-Life Add-On | php:7.4 module stream | [RHSA-2026:88565](https://access.redhat.com/errata/RHSA-2026:88565) |

If your servers are pinned to one of these minor releases, install the matching erratum. Red Hat still lists the php:8.4 module stream on RHEL 9 as affected.

### Update, 23 October 2026: PHP advises disabling session upload progress (CVE-2026-115560)

The PHP project has published an [informational advisory](https://www.php.net/archive/2026.php#2026-10-23-1) suggesting `session.upload_progress.enabled=0` until the next regular bugfix release, to fully protect against an unlikely remote code execution vector. The setting was already listed as a mitigation in the [GHSA-6wmf-4rv5-p3rp advisory](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp) for CVE-2026-109619; if you applied it then, keep it in place and no further action is needed.

According to PHP, the issue needs an unusual combination: the application sets `session.serialize_handler` to `php_binary` or `php_serialize` in its configuration, switches it to `php` at runtime with `ini_set()` before calling `session_start()`, and session upload progress is still enabled. Applications that never change the serialize handler at runtime can keep the feature enabled. PHP says it will publish a full advisory for CVE-2026-115560 with the next release.

### Update, 23 October 2026, 06:30 UTC: Red Hat errata and Debian advisories

Red Hat has shipped fixes for both flaws on 21 October. Its CVE pages for [CVE-2026-109618](https://access.redhat.com/security/cve/CVE-2026-109618) and [CVE-2026-109619](https://access.redhat.com/security/cve/CVE-2026-109619) rate them Important with a CVSS v3 score of 8.1 and list these errata:

| Product | Package | Advisory |
| --- | --- | --- |
| RHEL 10 | `php-8.3.36-1.el10_2` | [RHSA-2026:87070](https://access.redhat.com/errata/RHSA-2026:87070) |
| RHEL 10 | `php8.4-8.4.27-1.el10_2` | [RHSA-2026:87071](https://access.redhat.com/errata/RHSA-2026:87071) |
| RHEL 9 | php:8.3 module stream | [RHSA-2026:87079](https://access.redhat.com/errata/RHSA-2026:87079) |
| RHEL 9 | php:8.2 module stream | [RHSA-2026:87072](https://access.redhat.com/errata/RHSA-2026:87072) |
| RHEL 9 | `php-8.0.30-8.el9_8.1` | [RHSA-2026:87151](https://access.redhat.com/errata/RHSA-2026:87151) |
| RHEL 8 | php:8.2 module stream | [RHSA-2026:87073](https://access.redhat.com/errata/RHSA-2026:87073) |
| RHEL 8 | php:7.4 module stream | [RHSA-2026:87080](https://access.redhat.com/errata/RHSA-2026:87080) |
| Red Hat Hardened Images | `php-main-8.5.12-1.hum1` | [RHSA-2026:87414](https://access.redhat.com/errata/RHSA-2026:87414) |

Red Hat still lists the php:8.4 module stream on RHEL 9 as affected, so servers on that stream have no Red Hat package yet. On Debian, the [security tracker](https://security-tracker.debian.org/tracker/CVE-2026-109618) shows the trixie fix as DSA-6574-1 (php8.4 `8.4.27-1~deb13u1`) and the bookworm fix as DLA-4848-1 (php8.2 `8.2.35-1~deb12u1`). Debian testing (forky) is still listed as vulnerable.

### Update, 23 October 2026: Ubuntu packages for end-of-life releases

Canonical has published [USN-8948-2](https://ubuntu.com/security/notices/USN-8948-2), which brings the PHP2Shell fixes from [USN-8948-1](https://ubuntu.com/security/notices/USN-8948-1) to Ubuntu 14.04, 16.04, 18.04 and 20.04 LTS. These releases are past standard support, so the packages come through [Ubuntu Pro](https://ubuntu.com/pro). According to Ubuntu's CVE pages for [CVE-2026-109618](https://ubuntu.com/security/CVE-2026-109618) and [CVE-2026-109619](https://ubuntu.com/security/CVE-2026-109619), the fixed versions are:

| Ubuntu release | Package | Fixed version | How to get it |
| --- | --- | --- | --- |
| 20.04 LTS (Focal) | php7.4 | `7.4.3-4ubuntu2.29+esm5` | Ubuntu Pro |
| 18.04 LTS (Bionic) | php7.2 | `7.2.24-0ubuntu0.18.04.17+esm14` | Ubuntu Pro |
| 16.04 LTS (Xenial) | php7.0 | `7.0.33-0ubuntu0.16.04.16+esm22` | Ubuntu Pro, Legacy Support add-on |
| 14.04 LTS (Trusty) | php5 | `5.5.9+dfsg-1ubuntu4.29+esm18` | Ubuntu Pro, Legacy Support add-on |

Ubuntu also lists php8.5 `8.5.9-0ubuntu2.1` for the 26.10 release, alongside the 22.04, 24.04 and 26.04 LTS packages below. If an old Ubuntu server cannot be attached to Ubuntu Pro, plan the move to a supported release: the PHP project itself no longer ships fixes for PHP 8.1 and older.

### Update, 22 October 2026: the flaws are called PHP2Shell

The researchers have now published their findings under the name [PHP2Shell](https://www.php2shell.com/). Wiz Research, OpenAI Codex Security and Calif reported the bugs, and the [Wiz write-up](https://www.wiz.io/blog/php2shell-php-rce) describes remote code execution plus Heartbleed-style memory disclosure in the core PHP engine.

- **Not limited to one CMS.** WordPress, Drupal and Joomla were used to demonstrate unauthenticated remote code execution, but the vulnerable code is in PHP itself, so even a simple "Hello World" application on an affected runtime is exposed.
- **Memory disclosure.** An attacker may read PHP process memory, which can contain passwords, authentication tokens, API keys and certificates belonging to other requests or the server.
- **Affected versions.** The [GitHub advisories](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) list every release below 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as affected, and the researchers say nearly every PHP version back to 5.4 is hit by at least one of the issues. Both are scored 9.2 with a network attack vector and no privileges or user interaction required, though attack complexity is high and specific conditions must be present.
- **Distribution packages are out.** [Ubuntu](https://ubuntu.com/security/CVE-2026-109618) has fixed packages for php8.1 on 22.04 LTS (8.1.2-1ubuntu2.28), php8.3 on 24.04 LTS (8.3.6-0ubuntu0.24.04.13) and php8.5 on 26.04 LTS (8.5.4-0ubuntu1.5), with php5 and php7.x packages covered through Ubuntu Pro. [Debian](https://security-tracker.debian.org/tracker/CVE-2026-109618) has fixed php8.2 on bookworm (8.2.35-1~deb12u1) and php8.4 on trixie (8.4.27-1~deb13u1).
- **Updating the application is not enough.** The PHP2Shell site stresses that updating an application, whether WordPress, a plugin or Magento, does not update the PHP runtime beneath it. Install the fixed PHP, then restart Apache, PHP-FPM and any long-running PHP workers, such as queue consumers and other daemons.

Our view for stores: because process memory can leak, a public-facing server that ran an affected PHP version is worth treating as possibly exposed. After patching, rotate the secrets that server holds, such as payment gateway and ERP API keys, admin passwords and integration tokens, starting with anything that can move money or customer data.

### Update, 21 October 2026: the fixed versions are out

The PHP project has published its [security advisory](https://www.php.net/archive/2026.php#2026-10-21-5). **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, and the team strongly encourages all PHP users to update immediately. Every installation serving web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The PHP team considers the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request triggers the attack before any application code runs.

- **[CVE-2026-109618](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w)**: remote code execution through out-of-memory corruption. Out-of-memory handling can interrupt PHP while internal request data is only partly initialised, and request cleanup may then treat that invalid data as valid.
- **[CVE-2026-109619](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)**: remote code execution through stale global state. Request-owned internal state can survive after its memory is freed, and a later request on the same worker may use it before normal initialisation resets it.
- **Distribution packages**: Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages today.
- **PHP 8.1 and older**: no longer updated by the PHP project. Given the severity, the security team published minimal source backports for PHP 7.4, 8.0 and 8.1 for people who build from source; some distributions and LTS vendors also ship backported fixes.
- **Remi repository**: the PHP team says the volunteer-maintained rpms.remirepo.net will not have updates today and urges its users to switch to distribution packages or build from source.

A **PHP vulnerability** is a security flaw that attackers can use against software written in PHP. This time the two flaws are in the PHP runtime itself, the language engine that runs WordPress, WooCommerce, Magento and Adobe Commerce, not in a plugin or theme. On 20 October 2026 the PHP security team [gave advance notice](https://www.php.net/archive/2026.php#2026-10-20-1) of a critical security release for 21 October 2026, fixing two vulnerabilities both rated 9.2 on CVSS v4.0. The fixes are now available, and every self-hosted PHP store should patch today.

## What PHP announced about the two critical vulnerabilities

The advance notice gave the date and time, the number of vulnerabilities and their severity, and asked all PHP users to prepare now so they could upgrade as soon as the release was available. It also said the team might release earlier if details became public or if there was evidence of active exploitation.

The advisory itself now names both flaws: [CVE-2026-109618](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) and [CVE-2026-109619](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp). Both can lead to unauthenticated remote code execution, which means an attacker does not need an account on the store. For a shop, that puts customer data, orders and payment-adjacent code at risk, so this is a same-day patch rather than a routine update.

## PHP supported versions: which branches get the fix?

A PHP security update ships for supported branches. According to the [PHP supported versions page](https://www.php.net/supported-versions.php), four branches are in support, and each now has a fixed release.

| Branch | Support status | Security support until | Previous release | Fixed release |
| --- | --- | --- | --- | --- |
| PHP 8.5 | Active support | 31 December 2029 | 8.5.11 | 8.5.12 |
| PHP 8.4 | Active support | 31 December 2028 | 8.4.26 | 8.4.27 |
| PHP 8.3 | Security fixes only | 31 December 2027 | 8.3.35 | 8.3.36 |
| PHP 8.2 | Security fixes only | 31 December 2026 | 8.2.34 | 8.2.35 |
| PHP 8.1 and older | End of life | Ended 31 December 2025 (8.1) | 8.1.34 (last 8.1 release) | No release; source backports for 7.4, 8.0 and 8.1 only |

PHP 8.1 and older have reached [PHP end of life](https://no7software.co.uk/blog/php-end-of-life-supported-versions), so the PHP project does not ship new releases for them. The source backports help teams that compile PHP themselves, and a distribution-packaged 8.1, for example on an older Ubuntu LTS, may get a vendor fix. Check your distribution's advisory, but treat the move to a supported branch as required. The supported versions page warns that users of end-of-life releases may be exposed to unpatched security vulnerabilities.

## Does the PHP vulnerability affect Shopify, WooCommerce and Magento?

The work depends on who runs your PHP. On hosted platforms such as Shopify and BigCommerce, the merchant does not manage a PHP runtime for the store. Self-hosted WooCommerce, Magento Open Source and Adobe Commerce stores do. So does any custom PHP service around a hosted store, such as an ERP connector, a Laravel middleware or a custom app backend.

[WooCommerce's server requirements](https://woocommerce.com/document/server-requirements/) recommend PHP 8.3 or newer, tested up to PHP 8.4, and warn that older legacy versions have reached end of life. For Adobe Commerce and Magento the PHP branch is tied to the platform release, according to [Adobe's system requirements](https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirements):

| Adobe Commerce / Magento release | Supported PHP versions | Can run a fixed PHP release? |
| --- | --- | --- |
| 2.4.9 | PHP 8.5 | Yes, 8.5.12 |
| 2.4.8 | PHP 8.4, 8.3 | Yes, 8.4.27 or 8.3.36 |
| 2.4.7 | PHP 8.3, 8.2 | Yes, 8.3.36 or 8.2.35 |
| 2.4.6 | PHP 8.2, 8.1 | Only on PHP 8.2 (8.2.35) |
| 2.4.5 and 2.4.4 | PHP 8.1 | No upstream release; use a vendor backport (for example Ubuntu 22.04's php8.1 8.1.2-1ubuntu2.28) or the source backport |

That last row is the uncomfortable one. A Magento store still on 2.4.4 or 2.4.5 cannot move to a supported PHP branch without a platform upgrade first. For those stores, a backport buys time, and the advisory turns the platform upgrade into a project with a deadline. Stores on 2.4.6 with PHP 8.1 should move to PHP 8.2.35 now, because 2.4.6 already supports PHP 8.2. If the upgrade bill is close to a rebuild, our [Magento to Shopify migration](https://no7software.co.uk/magento-to-shopify) service is the alternative.

## PHP version check: what to do today

Start with a PHP version check on every server, then patch in order of risk.

1. **Check the PHP version on every server.** Run `php -v` on the server, or in WordPress open Tools, then Site Health, then the Info tab and the Server section, as [WordPress's Update PHP page](https://wordpress.org/support/update-php/) describes. Check the web PHP and the command-line PHP separately, because they can differ, and include staging, cron and queue workers.
2. **Patch the servers that serve web requests first.** Start with anything running mod_php, which the PHP team rates as the highest risk, then PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. Payment and admin servers come before the rest.
3. **Ask your host when the fix lands.** If a host manages PHP for you, ask for the time they will install 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or the patched distribution package, and whether every worker is restarted.
4. **Patch today, with a quick test.** Apply the fix the same day, test on staging if you can do it within hours, and run a checkout smoke test on the live store afterwards.
5. **Plan the upgrade for end-of-life servers.** If a server is on PHP 8.1 or older, use a vendor or source backport now if one is available, and book the move to a supported branch. Upgrade the platform first if the current Magento or WooCommerce version does not support a newer PHP.

## PHP security update: how to patch

Install 8.5.12, 8.4.27, 8.3.36 or 8.2.35 for your branch from your host or package manager, then restart PHP-FPM or the web server so every worker runs the new binary. On Debian, Ubuntu or Red Hat packages, check the distribution's security advisory or the package changelog. Distributions often backport fixes without changing the upstream version number. On Docker, rebuild the image from the patched base and redeploy every container that uses it.

To confirm the web side, a temporary phpinfo page shows the running version; delete it straight after. Then place a test order through checkout and watch the error logs. If WordPress reports that the PHP installation is missing the MySQL extension, the new PHP version needs mysqli; see our [missing MySQL extension fix](https://no7software.co.uk/blog/wordpress-missing-mysql-extension-error). Updating within the same branch is the right call today; a jump to a new branch belongs in a planned upgrade instead of an emergency window.

## If you cannot update PHP today

The advisory is clear that only an update is a complete solution. It lists measures that reduce exposure to specific attack paths without making an installation safe, so use them only to bridge the hours before the patch. The full details are in the advisories for [CVE-2026-109618](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) and [CVE-2026-109619](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp).

- **For CVE-2026-109618:** set `memory_limit=-1` in a way applications cannot override, such as `php_admin_value` in the FPM pool or Apache configuration, and lower `post_max_size` (the advisory suggests 8M without uploads, 32M with them, with `upload_max_filesize` below it). Use a container or cgroup memory limit as the boundary; the advisory says not to substitute RLIMIT_AS or RLIMIT_DATA, as these can cause the vulnerable allocation failure.
- **For CVE-2026-109619:** set `session.upload_progress.enabled=0` in php.ini, the FPM pool or server configuration, not with `ini_set()` or `.user.ini`, and restart every worker. Disabling upload progress blocks the confirmed session paths only, not other variants. On PHP 8.5, also set `fatal_error_backtraces=0`, which blocks the confirmed fatal backtrace path only.

On a WooCommerce or Magento store, check uploads and imports before you lower `post_max_size`, because product imports and media uploads may need more than 32M. That is one more reason to patch instead of relying on configuration.

## How to update PHP in WordPress and WooCommerce

WordPress does not update PHP itself, because the server sets the PHP version. You update PHP in WordPress through your hosting control panel or your server's package manager; our [step-by-step guide to updating PHP in WordPress](https://no7software.co.uk/blog/how-to-update-php-in-wordpress) covers each hosting type. Before you change branch, take a full backup, update WordPress, WooCommerce and every plugin, and test on a staging copy. After the switch, Tools, then Site Health, then Info, then Server shows the PHP version WordPress is actually using. WordPress itself recommends PHP 8.3 or newer on its [Update PHP page](https://wordpress.org/support/update-php/).

Moving to the fixed release of the same branch is a small change. Moving to a new branch, for example from 8.2 to 8.3, needs a plugin and extension compatibility check first; our [WooCommerce PHP compatibility guide](https://no7software.co.uk/blog/woocommerce-php-8-1-requirement-engineering-guide) walks through that test. If the host does not offer a supported branch, that is a reason to change host rather than wait.

## What to do next

Run the version check now and patch every server on a supported branch to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or your distribution's patched package, today, so this PHP vulnerability is closed. Put any PHP 8.1 or older server on a backport and an upgrade ticket with a date. For older Magento stores, our [Magento upgrade cost versus replatforming](https://no7software.co.uk/blog/magento-upgrade-cost-vs-replatforming) comparison helps decide whether to upgrade or move. If you want the PHP upgrade done for you, our [WooCommerce development](https://no7software.co.uk/woocommerce-development) team can scope it. The same week also brought a [Node.js vulnerability fix](https://no7software.co.uk/blog/nodejs-security-release-brotli-rce) and the [Railway security breach](https://no7software.co.uk/blog/railway-security-breach-environment-variables), so check those runtimes and hosts too. In November, the [CVE-2026-98432 Linux kernel TCP vulnerability](https://no7software.co.uk/blog/linux-kernel-cve-2026-98432-tcp-vulnerability) added a kernel patch and reboot for the same servers.

## Frequently Asked Questions

The questions buyers and engineers ask us most about this topic.

### What is PHP2Shell?

PHP2Shell is the name the researchers gave to CVE-2026-109618 and CVE-2026-109619, two memory-safety flaws in core PHP found by Wiz Research, OpenAI Codex Security and Calif. They can allow unauthenticated remote code execution and memory disclosure, and are fixed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

### Should I rotate passwords and API keys after patching PHP2Shell?

The flaws can leak PHP process memory, which may hold passwords, tokens, API keys and certificates. Our view is that a public-facing server that ran an affected version should rotate its secrets after patching, starting with payment gateway, ERP and admin credentials.

### Which PHP versions fix CVE-2026-109618 and CVE-2026-109619?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on 21 October 2026, or your distribution's patched package. Both flaws can allow unauthenticated remote code execution, and the PHP team strongly encourages all users to update immediately.

### Is my PHP setup affected by the October 2026 PHP vulnerability?

All PHP installations serving web requests are at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The PHP team rates mod_php as the highest risk, with a demonstrated exploit that runs before application code.

### What if my server runs PHP 8.1?

PHP 8.1 no longer gets releases from the PHP project. The security team published minimal source backports for 7.4, 8.0 and 8.1, and some distributions and LTS vendors ship backported fixes. Use one now and plan the move to a supported branch.

### How do I check and update PHP in WordPress?

Check the version under Tools, Site Health, Info, Server. The PHP version itself is changed in your hosting control panel or on the server, not inside WordPress, after a backup and a plugin compatibility test on staging.

### Do Shopify or BigCommerce stores need to patch PHP?

Not for the store itself, because merchants on hosted platforms do not manage its PHP runtime. Self-hosted WooCommerce, Magento and Adobe Commerce stores must patch, and so must any custom PHP service around a hosted store, such as an ERP connector or app backend.

### Does the PHP vulnerability affect Shopify?

On hosted platforms such as Shopify and BigCommerce, the merchant does not manage a PHP runtime for the store. Custom PHP services around a hosted store, such as an ERP connector or Laravel middleware, still need patching. Self-hosted WooCommerce, Magento Open Source and Adobe Commerce stores need the fixed PHP versions.

### Do I need PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36 if I already patched PHP2Shell?

Yes. PHP released 8.5.13, 8.4.28, 8.3.37 and 8.2.36 on 19 November 2026 as security releases. The PHP change log lists 12 to 17 security fixes per branch, including a timezone cache use-after-free and two session flaws that it says can lead to remote code execution. These are separate from PHP2Shell, so update to the new release on your branch.
