PHP Session Upload Progress RCE
On 23 October 2026, two days after the PHP2Shell fixes, PHP published an informational advisory for CVE-2026-115560: a possible remote code execution path in session upload progress.
CVE-2026-115560: PHP Session Upload Progress RCE
Advisory gist · 18 Nov 2026 Source: PHP informational advisory, 23 Oct 2026. Not a CERT-In note.
| CVE | CVE-2026-115560 |
| Product | PHP (session extension, session upload progress) |
| Impact | Possible unauthenticated remote code execution |
| Severity | No score published yet |
| Exploitation | None reported in the wild; public PoC / Docker lab on GitHub |
| CISA KEV | Not listed |
| Fix | Expected in PHP's next regular release, 19 Nov 2026 |
| Mitigation | session.upload_progress.enabled = 0 |
Summary
On 23 October 2026, two days after the PHP2Shell fixes, PHP published an informational advisory for CVE-2026-115560: a possible remote code execution path in session upload progress.
PHP calls it unlikely because it needs an unusual setup, but where that setup exists an unauthenticated attacker can get code run on the server.
- The 21 October releases (8.5.12, 8.4.27, 8.3.36, 8.2.35) do not fix it.
- PHP will publish the full advisory and fix in its next regular release (19 November 2026).
- Affected versions and a severity score have not been published.
- A public PoC and Docker lab on GitHub reports end-to-end RCE on
php:8.4.27-apache.
Am I exposed?
All three conditions must be true:
| # | Condition | How to check |
|---|---|---|
| 1 | Config sets session.serialize_handler to php_binary or php_serialize |
php -i | grep session.serialize_handler (also check per-site / pool configs) |
| 2 | Code switches it to php with ini_set() before session_start() |
grep -rnE "ini_set.*session.serialize_handler" /path/to/app (include vendor/) |
| 3 | session.upload_progress.enabled is on (PHP default) |
php -i | grep session.upload_progress.enabled |
A match on only one or two conditions is not exploitable; the combination is. Per PHP, apps that never change the handler at runtime can keep upload progress on.
How the attack works (analyst summary)
- While a file uploads, PHP writes the attacker's
PHP_SESSION_UPLOAD_PROGRESSform value into the session file using the configured format (php_serialize). - The app then reads the session with the different
phpformat, which splits the data at the first|character. - Attacker-chosen text is treated as a serialized PHP object (object injection, CWE-502, analyst mapping).
- Code execution follows if the app or its libraries contain usable gadget classes.
The payload only exists while the upload is in progress, so attacks race many parallel uploads.
What to do
Now
Set upload progress off everywhere:
; php.ini
session.upload_progress.enabled = 0
; PHP-FPM pool config
php_admin_flag[session.upload_progress.enabled] = off
# Apache with mod_php
php_admin_flag session.upload_progress.enabled off
If you already set this for CVE-2026-109619 (PHP2Shell), keep it.
Side effect: upload progress bars that read $_SESSION stop working.
Alternative (if you need upload progress)
- Remove the runtime
ini_set()switch from the code, or - Lock the handler in PHP-FPM (breaks apps that legitimately need
php_serialize):
php_admin_value[session.serialize_handler] = php
From 19 November
- Install the PHP release that carries the fix for your branch.
- Read the full advisory for affected versions and score, then decide whether to re-enable upload progress.
- Rebuild container images; check hosting panels and vendor appliances that bundle PHP.
Detect
- Multipart requests with a
PHP_SESSION_UPLOAD_PROGRESSfield containing|or serialized objects (O:). - Bursts of parallel uploads to one endpoint.
- New PHP files, web shells, or unexpected processes spawned by PHP-FPM / Apache.
If compromised
- Isolate the server.
- Rotate DB credentials, app keys and session secrets.
- Remove web shells; restore from a clean backup.
- Report to [email protected] within 6 hours (CERT-In Section 70B directions). RBI-regulated entities also report to RBI within 6 hours.
References
- PHP informational advisory, 23 Oct 2026: https://www.php.net/archive/2026.php#2026-10-23-1
- PHP 19 Nov 2026 release notes (when published)
- PoC lab: https://github.com/googlesky/CVE-2026-115560
- Analyses: Brandefense, Astra Security, SOC Prime
- Related: PHP2Shell, CVE-2026-109618 / CVE-2026-109619
Affected versions, score and fixed releases are not yet published. Update this note after the 19 Nov 2026 PHP releases.