CVE explainer

CVE-2026-115560: the PHP session flaw the PHP2Shell fixes didn’t cover

Short answer

CVE-2026-115560 is a critical PHP session flaw, announced on 23 October 2026 and fixed on 19 November in 8.5.13, 8.4.28, 8.3.37 and 8.2.36. It needs session upload progress switched on and two different session serializers sharing one store. Upgrade; until then, set session.upload_progress.enabled=0.

On this page

What is CVE-2026-115560?

On 23 October 2026, two days after the PHP2Shell releases, the PHP project published an informational advisory about a third issue: a possible remote code execution path through session upload progress, the feature that lets a page poll how much of a file upload has arrived. PHP held the fix for its next regular release.

That release came on 19 November 2026. PHP’s full advisory, GHSA-658j-r8rw-q6mx, is titled “Session serializer mismatch can lead to remote code execution” and rates it critical (CVSS 4.0 9.2). It’s a separate bug from CVE-2026-109618 and CVE-2026-109619, and it shipped alongside sixteen other security fixes: the November release explained.

In plain terms: PHP can store session data in more than one format (the “serializer”). If one process writes a session in one format and another reads it in a different one, part of what the attacker sent can be read back as PHP objects. With a suitable chain of classes in the application, that becomes code execution as the PHP worker. PHP’s advisory says command execution was demonstrated with gadgets from Guzzle and from Monolog 2.11.1, both very common libraries.

Am I exposed?

The full advisory describes a wider set of conditions than the October note did. You’re exposed if both of these are true:

  1. session.upload_progress.enabled is on. It was PHP’s default until this release.
  2. The writer and the reader of the same session store use different session.serialize_handler values.

In October, PHP described the second point as an application switching session.serialize_handler to php with ini_set() before session_start(). The November advisory adds that the mismatch can also happen across pools or processes: two sites, two PHP-FPM pools or a CLI script sharing one session directory or Redis database, each configured differently.

To look for it in your code and configuration:

grep -rn "serialize_handler" /var/www /etc/php* 2>/dev/null

Adjust the paths to where your sites and PHP configuration live. Most applications never touch session.serialize_handler, and most servers use one value everywhere. If that’s you, the conditions aren’t met. The stopgap below costs almost nothing, though, so most admins apply it anyway.

Fixed versions

Branch Affected Fixed in
8.5 8.5.0 to 8.5.12 8.5.13
8.4 8.4.0 to 8.4.27 8.4.28
8.3 8.3.0 to 8.3.36 8.3.37
8.2 up to 8.2.35 8.2.36

PHP 8.6.0, released the same day, includes the fix. The October PHP2Shell releases (8.5.12, 8.4.27, 8.3.36, 8.2.35) do not. Distribution packages backport fixes under their own version numbers, so check the package changelog for CVE-2026-115560 (how) and follow the patch guides.

Several analyses report that the fixed releases also switch session upload progress off by default, and Red Hat says the same of its updated packages. An explicit session.upload_progress.enabled = 1 in your php.ini or pool still turns it back on, so check for one.

The stopgap: one setting

If you can’t upgrade today, turn session upload progress off:

; php.ini used by your web runtime
session.upload_progress.enabled = 0

Set it where applications can’t switch it back on. In a PHP-FPM pool:

; e.g. /etc/php/8.3/fpm/pool.d/www.conf
php_admin_flag[session.upload_progress.enabled] = off

With Apache mod_php:

php_admin_flag session.upload_progress.enabled off

PHP’s advisory says to set it in every configuration that can write the affected session store, before request input is processed. ini_set() from the application is too late, and PHP’s October advisory warned against relying on FPM .user.ini files for it. Restart PHP-FPM or Apache afterwards, because a reload may leave old workers running. Then confirm it from the web runtime: php-fpm8.3 -i | grep upload_progress shows the php.ini value, and a pool-level setting only shows up in a temporary phpinfo() page (delete it afterwards).

On shared hosting you usually can’t change this yourself: your host controls PHP’s configuration. On cPanel servers, the setting is in WHM → MultiPHP INI Editor.

Already did this for PHP2Shell? Then you were covered for this bug in the meantime. It also narrows the easiest route to CVE-2026-126714 (“phpAfterShell”), a different session bug fixed in the same release, though it doesn’t close that one completely.

What could break? Only upload progress bars that read their progress from the session. Test your upload forms after the change.

Is it being exploited?

As of 20 November there were no public reports of attacks using CVE-2026-115560, and it wasn’t on CISA’s Known Exploited Vulnerabilities list. The advisory’s own note about demonstrated command execution is the reason not to wait for that.

What hosts told customers

On managed and shared plans, the host controls php.ini. In October, GoDaddy and Hostinger told customers who run their own VPS to apply the upload-progress setting themselves. For the November release, ask your host whether PHP has been updated and restarted: did my host patch? has the questions.

Not sure which of the other November bugs your setup can reach? Run the seven quick checks.

Shayan Abbas writes these PHP security guides from the official advisories and vendor guidance listed below, and updates them when those change. About this site

Sources

  1. GitHub php-src advisory GHSA-658j-r8rw-q6mx: Session serializer mismatch can lead to remote code execution
  2. php.net: PHP 8.5.13 Released (19 Nov 2026)
  3. php.net: Informational advisory: session upload progress (23 Oct 2026)
  4. php.net: PHP2Shell security release and upload-progress guidance (21 Oct 2026)
  5. Red Hat: RHSB-2026-020, multiple PHP vulnerabilities (includes CVE-2026-115560)
  6. The Hacker News: PHP warns of another unpatched RCE risk two days after PHP2Shell patches

Know about the next critical PHP bug first

Short, plain-English alerts when a serious PHP vulnerability or fix lands — with what to patch and how. About two emails a month.