News

PHP shares mitigation for new RCE vulnerability without patch

Aseem Kishore
10 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

On October 23, 2026, the PHP project disclosed a new remote code execution (RCE) flaw in the PHP runtime, tracked as CVE-2026-115560. It didn’t ship a patch. Instead it published a config workaround: set session.upload_progress.enabled=0 until a fix lands in a future regular release (BleepingComputer). Sources retrieved October 24, 2026.

The short version: CVE-2026-115560 only triggers under an unusual session setup, so the config change is cheap insurance. PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a separate bug, and PHP patched it two days earlier, on October 21. If you haven’t upgraded for PHP2Shell yet, that’s the bigger priority. Most shops should do both.

What Happened

Two separate PHP security incidents landed in the same week. Coverage is already blurring them together, so here they are side by side.

October 21, 2026: PHP2Shell gets emergency patches

PHP shipped emergency security releases for two critical RCE flaws nicknamed PHP2Shell, CVE-2026-109618 and CVE-2026-109619 (BleepingComputer). The fixed versions are:

  • PHP 8.5.12
  • PHP 8.4.27
  • PHP 8.3.36
  • PHP 8.2.35

The PHP 2026 release archive is the canonical place to confirm which version fixes what.

Public PHP.net 2026 news archive page showing the October 2026 release entries for PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35, with any CVE references visible

Several security vendors published analysis and stopgap guidance for PHP2Shell. That includes Palo Alto Networks Unit 42 and AWS, which covers mitigation rules in AWS WAF. Microsoft’s Azure Network Security team was blunt. Upgrading PHP across VMs, containers, base images, and platform runtimes is the only way to fully remediate PHP2Shell (Microsoft Tech Community).

October 23, 2026: CVE-2026-115560 is disclosed, with no patch

Two days later, PHP disclosed CVE-2026-115560. According to BleepingComputer’s report, it can only be exploited when all of these are true:

  • The application uses the php_binary or php_serialize session serialize handler.
  • The application then switches session.serialize_handler to php at runtime with ini_set().
  • The application calls session_start() after that switch.
  • Session upload progress tracking (session.upload_progress.enabled) is still on.

PHP considers that combination unlikely in real-world apps. Most apps pick a serialize handler once and never change it mid-request. So PHP chose to publish a mitigation now instead of rushing an out-of-band build. Per BleepingComputer, the project plans a full advisory and fix with a later regular release. There’s no patched PHP version for CVE-2026-115560 yet, and PHP hasn’t named a target version or date.

What CERT-EU is recommending

CERT-EU updated Security Advisory 2026-018 on October 23, 2026 (version 1.2), adding CVE-2026-115560 to its earlier PHP2Shell guidance. Its guidance covers the PHP 8.2 through 8.5 branches. For PHP2Shell, it says its temporary mitigations block the confirmed attack paths but not other variants. For CVE-2026-115560, it repeats PHP’s advice that setting session.upload_progress.enabled=0 and restarting every worker protects against this bug until the next regular bugfix release. It also recommends isolating internet-facing systems from public networks until patching or verified mitigation is complete.

Public CERT-EU Security Advisory 2026-018 page showing the advisory date and the summary and recommendations section for the PHP vulnerabilities

Who this affects

  • CVE-2026-115560: Only PHP apps that match all four trigger conditions above. If your code never calls ini_set() on session.serialize_handler, the documented trigger path doesn’t apply to you. PHP hasn’t published a precise affected-version list for this CVE, so don’t assume any build is immune.
  • PHP2Shell: CERT-EU lists PHP 8.2 through 8.5 versions before the fixed releases as affected. Official fixes exist only for the still-supported 8.2–8.5 branches (8.5.12, 8.4.27, 8.3.36, 8.2.35). If you’re running PHP 8.1 or older, you’re unsupported upstream rather than confirmed unaffected, so treat it as exposed too; you’ll need a verified vendor backport or a migration to a supported branch. That’s a far broader group than CVE-2026-115560.

This is a PHP runtime issue rather than something tied to one operating system or deployment method, so check wherever your PHP code actually runs. It reaches the homelab too. If you run Nextcloud on a Raspberry Pi or WordPress on a Synology NAS, check which PHP build your image or package actually ships.

How the PHP RCE Vulnerability Mitigation Stacks Up

Competing platforms don’t make sense as a comparison for a server-side runtime bug. The useful comparison is between the two incidents admins are juggling this week.

CVE-2026-115560PHP2Shell (CVE-2026-109618 / 109619)
Disclosed / fixedDisclosed Oct 23, 2026; no patch (BleepingComputer)Patched Oct 21, 2026 for supported 8.2–8.5 branches (BleepingComputer)
ImpactRemote code executionRemote code execution (rated critical)
Trigger conditionsNarrow: runtime switch from php_binary/php_serialize to php, then session_start(), with upload progress onBroader; see Unit 42 analysis
Official remedySet session.upload_progress.enabled=0; PHP says it will ship the fix and a full advisory with the next regular release, without naming a date. The Canadian Centre for Cyber Security also lists this same setting as a recommended step for CVE-2026-109619Upgrade to 8.5.12, 8.4.27, 8.3.36, or 8.2.35 (php.net); on 8.1 or older, you need a verified vendor backport or a move to a supported branch
Is the stopgap a full fix?PHP says the setting fully protects against this bug until the next regular bugfix release; it is still a config workaround, not a patched buildNo. Microsoft says only upgrading fully remediates (Microsoft)
Admin effortOne php.ini line plus a worker restart, per pool or imagePackage or image rebuild and redeploy across every layer that bundles PHP

The effort row describes the work each change involves. Treat it as a rough guide, with no timing data behind it.

The cost gap still matters. The CVE-2026-115560 mitigation costs almost nothing unless your app uses session-based upload progress tracking, like a progress bar for large uploads. Disabling the setting turns that feature off. PHP2Shell takes more admin time. It touches distro packages, container base images, and any managed runtime your cloud provider controls. Microsoft’s guidance is a good reminder: a php.ini flag on one VM won’t reach a stale base image three layers down your CI pipeline.

The Reaction

Reaction is still forming. We found no Hacker News thread on this disclosure, and there’s no community discussion substantial enough to cite yet.

Our Take

Verdict: Adopt the mitigation now. Adopt the PHP2Shell upgrade now if you haven’t. Pilot only where upload progress tracking is a real feature.

The PHP team’s choice is defensible. The trigger needs an app to change its own serialize handler mid-request. In that case, a one-line config change shrinks the attack surface faster than an emergency build. The trade-off is that you’re running on a workaround with no fix date. PHP says the setting fully protects against this vector in the meantime, but a config flag can quietly come back on with the next image rebuild or php.ini change.

For an IT shop, it breaks down like this:

  • CVE-2026-115560 mitigation → Adopt. It’s one config line and a restart per environment. Do it even if you think you don’t match the trigger, since you may not control every plugin or vendored library. Pilot it in staging first if your app shows upload progress through $_SESSION, because that feature will stop working.
  • PHP2Shell upgrade → Adopt, no exceptions. It’s a separate pair of bugs with a shipped fix for 8.2–8.5. Setting session.upload_progress.enabled=0 does not fully remediate PHP2Shell on its own — the Canadian Centre for Cyber Security lists that same setting as a recommended step specifically for CVE-2026-109619, but upgrading is still the only way to fully close PHP2Shell. Being on 8.5.12, 8.4.27, 8.3.36, or 8.2.35 is the baseline. If you’re still on 8.1 or earlier, don’t assume you’re out of scope — confirm whether your vendor has backported a fix, and plan a migration to a supported branch if not.
  • Waiting for the CVE-2026-115560 patch → Don’t. Apply the mitigation now. Then schedule the upgrade when PHP ships the regular release with the fix.
  • Internet-facing systems you can’t touch this week: Follow CERT-EU’s advice and isolate them until you’ve patched or verified the mitigation.

The config line is cheap. Inventory is the expensive part. You need to know every place PHP runs: FPM pools, IIS sites, Docker images, and the PHP container on that small NAS you forgot about. Shops that already track this will spend an afternoon. The rest will learn something uncomfortable about their estate.

What to Do Next

Below is one check you can run on each host: confirm your PHP version and whether upload progress tracking is on. It’s a spot check, short of a full rollout guide. The CLI may load a different php.ini than PHP-FPM, Apache, or IIS. So also confirm the setting where your web SAPI reads it (a phpinfo() page on a private admin host works).

Linux (Ubuntu/Debian)

Check the version and the current setting:

php --version
# -i dumps the full config; grep narrows it to the upload progress keys
php -i | grep -i upload_progress.enabled

After the mitigation is applied, the setting line should read:

session.upload_progress.enabled => Off => Off

The mitigation line goes in the php.ini your web SAPI uses. On Ubuntu that’s typically /etc/php/8.3/fpm/php.ini (swap in your branch):

; /etc/php/8.3/fpm/php.ini
; Temporary mitigation for CVE-2026-115560 until PHP ships a fix
session.upload_progress.enabled = 0

Warning: php.ini changes don’t reach running workers. PHP says to restart every worker: restart the FPM pool (for example sudo systemctl restart php8.3-fpm), restart Apache if you use mod_php, or redeploy containers. Otherwise the old setting stays live. Set it in php.ini, an FPM pool or a server configuration that applies before request parsing; PHP warns not to rely on ini_set() or an FPM .user.ini file for this, and a per-directory override such as .htaccess or a virtual-host php_value can turn it back on. The CLI check above doesn’t prove what your web server loads, so confirm through the web SAPI too.

To see whether your code can even reach the trigger, search for runtime serialize-handler changes:

# -r recurses, -n prints line numbers; adjust the path to your web root
grep -rn "session.serialize_handler" /var/www
Ubuntu terminal showing php --version output for PHP 8.4.27 followed by the session.upload_progress.enabled line reading Off => Off

Windows Server

In PowerShell, from a session where php.exe is on the PATH:

php --version
# findstr filters the config dump to the upload progress setting
php -i | findstr /i "upload_progress.enabled"

After the mitigation is applied, you should see:

session.upload_progress.enabled => Off => Off

Add session.upload_progress.enabled = 0 to the php.ini your IIS FastCGI handler loads. php --ini shows which file the CLI uses, and that can differ from the one IIS uses. Then recycle the app pool so new FastCGI processes pick up the change. To scan code for runtime handler switches:

# -Recurse walks the site directory; adjust the path to your web root
Get-ChildItem -Path C:\inetpub\wwwroot -Recurse -Filter *.php | Select-String -Pattern "session.serialize_handler"
PowerShell window on Windows Server showing php --version output and the findstr result for session.upload_progress.enabled reading Off => Off

Wrapping Up

Two PHP RCE stories hit the same week, and they need two different responses. PHP2Shell has a real fix, so upgrade. CVE-2026-115560 only has a workaround, so flip the setting, restart your workers, and watch the php.net archive for the release that fixes it. Mixing them up is how you end up “patched” against the wrong bug.

PHP made a reasonable call given how narrow the trigger is. A mitigation with no fix date is still a loose end, though, so track it like one.

StepActionApplies To
1Upgrade to 8.5.12, 8.4.27, 8.3.36, or 8.2.35 (or confirm a verified backport if you’re on 8.1 or older)PHP2Shell (CVE-2026-109618/109619)
2Set session.upload_progress.enabled = 0 and restart workersCVE-2026-115560 (also recommended for CVE-2026-109619 per CCCS)
3Search code for runtime session.serialize_handler changesCVE-2026-115560 exposure check
4Isolate internet-facing hosts you can’t fix yet (per CERT-EU)Both
5Upgrade again when PHP ships the CVE-2026-115560 fixCVE-2026-115560

Sources