PHP2Shell Security Advisory: What to Do Now | Jade Global
Security Advisory

PHP2Shell: Two Critical PHP Flaws. Act Now.

On October 21, 2026, the PHP project fixed two critical vulnerabilities in PHP itself. Working exploit code is now publicly available, so the window to act is short. If PHP runs anywhere in your environment, here is what you need to know and do.

Published October 27, 2026

2Critical flaws in PHP itself
9.2PHP severity score (CVSS v4.0)
0Logins needed to attack
Oct 21Fixes released

What Has Happened

On October 21, 2026, the PHP project released fixes for two flaws in PHP itself, collectively known as PHP2Shell:

  • CVE-2026-109618 related to out-of-memory handling
  • CVE-2026-109619 related to stale state carried between requests

The PHP project rates both as critical (CVSS v4.0 score of 9.2 out of 10). In affected setups, an attacker could take over a web server remotely without needing to log in. Details of the flaws became public before the fixes were released, which reduced the time available to respond, and working exploit code is now publicly available.

Because the issue sits in PHP rather than in any one application, the fix is a runtime update. The update itself is straightforward. Finding every place PHP runs, and confirming each one is genuinely patched, is where most of the effort lies.

Why This One Is Serious

PHP2Shell sits below your applications, so the usual protections do not apply.

These Flaws Are in PHP, Not Your Code

Well-written applications are still exposed. Secure code does not protect the server underneath it.

Every Common Setup Is at Risk

PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed are all affected. With mod_php, the attack can fire before any application code runs.

PHP Is Everywhere

WordPress, Drupal, Magento, Moodle, many vendor products and internal tools all run on it.

Impacted and Fixed Versions

PHP BranchStatusFixed In
8.5Supported8.5.12
8.4Supported8.4.27
8.3Supported8.3.36
8.2Supported until December 31, 20268.2.35
8.1, 8.0, 7.4End of lifeSource backports or a vendor fix
7.3 and olderEnd of lifeVendor-supported builds, or upgrade

A patched server can look unpatched. On Red Hat, Ubuntu and Debian, fixes are often backported without changing the PHP version string. Confirm status from the package version and your distribution’s security advisory, not from php -v.

Your Response Plan

Patch first. Where you cannot patch today, reduce exposure and set a date to finish the job.

  1. Build a Complete Inventory

    Identify every PHP instance, including containers, third-party products, appliances and less visible servers.

  2. Update or Apply the Vendor Fix

    Install the fixed release or your operating system vendor’s update wherever one is available. Rebuild containers from patched base images.

  3. Cover End-of-Life Versions

    Arrange extended support or a backported fix, and set a dated plan to move to a supported PHP version.

  4. Use Temporary Mitigations Only to Buy Time

    If you cannot patch immediately, apply the mitigations in the PHP security advisory: set session.upload_progress.enabled=0, and on PHP 8.5 also set fatal_error_backtraces=0. Make these changes in php.ini or the PHP-FPM pool, not through .user.ini or ini_set(), which take effect too late. They reduce risk but do not replace patching.

  5. Restart and Verify

    Restart all PHP workers after any change, then confirm both web server and command-line configurations are covered.

PHP also recommends keeping session.upload_progress.enabled=0, even after patching, until its next bugfix release, to address a related issue (CVE-2026-115560).

Let’s confirm where you stand.

Reach out to your Jade Global account manager, or fill in the form below and our team will schedule your exposure check.

References

This advisory provides general guidance based on publicly available information as of October 27, 2026. The situation is evolving, and vendor fixes and recommendations may change. Please confirm current status with your operating system or platform vendor’s security advisories. This advisory does not replace an assessment of your specific environment.