Servers that patched PHP2Shell in October are still exposed to a fresh pair of critical remote code execution flaws released on November 19, 2026. The PHP Group shipped coordinated security updates across every supported branch, fixing 18 CVEs in PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36 alongside the day-one 8.6.0 release.
Credit: Markus Spiske, CC0 1.0 via Wikimedia Commons.
Two of the patched bugs carry CVSS 4.0 scores of 9.2 and hit common production architectures in very different ways. Cycode's technical breakdown tracks CVE-2026-126714, dubbed PHPAfterShell, inside PHP's default file session handler. Aikido Security's advisory details CVE-2026-129289, a PHP-FPM request smuggling flaw triggered when a reverse proxy keeps FastCGI connections open and an application opens php://input without draining the stream.
If your team rushed to deploy the October 21 fixes for PHP2Shell, those builds do not protect against PHPAfterShell, CVE-2026-115560, or the FPM smuggling bug.
Why PHPAfterShell hits default PHP installs
PHPAfterShell (CVE-2026-126714) lives in how PHP writes and updates session state when session.save_handler is set to files, which is the default on almost every stock PHP installation. Partially overwritten session files can corrupt serialized session state in a way that lets an attacker execute arbitrary code as the PHP worker process.
Applications that store sessions in Redis, Memcached, or a relational database are insulated from CVE-2026-126714 because those backends replace session records atomically in one step. Even there, the PHP maintainers advise auditing how your session storage driver handles interrupted writes before assuming full safety.
A related session bug, CVE-2026-115560, also received its full advisory in the November 19 release after an initial placeholder warning on October 23. Exploitation requires two specific conditions: the server configuration sets session.serialize_handler to php_binary or php_serialize, and the PHP script switches the handler to php at runtime via ini_set() before calling session_start() while session.upload_progress.enabled remains active.
The silent php.ini default change that breaks upload bars
Buried inside the November 19 source diff is a behavioral shift that never made it into the official changelog. Comparing the October and November PHP source trees, The Hacker News found that PHP 8.5.13, 8.4.28, 8.3.37, 8.2.36, and 8.6.0 switch session.upload_progress.enabled to 0 (off) by default.
Turning off upload progress closes one known attack vector for both CVE-2026-115560 and PHPAfterShell. However, any application that displays real-time file upload progress bars using PHP's native session upload progress keys without explicitly setting session.upload_progress.enabled = 1 in php.ini will silently lose that feature after upgrading.
Conversely, if your hosting panel, distribution package, or custom php.ini already sets session.upload_progress.enabled = 1, upgrading PHP will leave it enabled. You should verify your active runtime configuration with php -i or a temporary phpinfo() check and remove the test file immediately afterward.
Expand
Code editor showing PHP syntax on a dark background
Image: Yuri Samoilov via Wikimedia Commons, CC BY 2.0
How PHP-FPM request smuggling works in CVE-2026-129289
While PHPAfterShell targets file-backed sessions, CVE-2026-129289 targets high-throughput PHP-FPM deployments behind reverse proxies. According to Aikido Security's analysis, a single unauthenticated HTTP request can execute arbitrary PHP code as the FPM worker if two conditions align.
First, the web server or load balancer must reuse persistent connections to PHP-FPM. Common configurations that trigger this include nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI backends configured for connection reuse, and LiteSpeed LSAPI pools. Standard nginx and Apache setups that open and close a fresh FastCGI socket per request are not exposed to the demonstrated exploit.
Second, an application endpoint must open php://input without reading the entire HTTP request body to EOF. Unread bytes left in the persistent FastCGI stream can be interpreted as part of the next FPM request on that socket.
Draining php://input in application code is not a reliable mitigation. The PHP security team noted that error paths, memory or execution limits, and early worker shutdown can still leave unread bytes on the wire. Until you patch PHP-FPM, the only safe temporary mitigation is disabling FastCGI connection reuse on the front-end proxy and blocking direct network access to PHP-FPM ports.
All 18 CVEs patched in the November 19 release
Beyond the headline RCE flaws, the November 19 security batch closes memory corruption, signature bypass, and denial-of-service vulnerabilities across Core, Date, DOM, CGI, Phar, SOAP, Standard, and URI components. Note that Rescana's advisory counts 17 PHP-specific CVEs alongside the bundled uriparser library upgrade (CVE-2026-48841), bringing the combined total to 18 tracked identifiers.
| CVE ID | Component | Vulnerability Summary | Impact |
|---|---|---|---|
| CVE-2026-126714 | Session | Partially overwritten session files (PHPAfterShell) | Critical RCE (CVSS 9.2) |
| CVE-2026-129289 | FPM | Request smuggling via unread HTTP request body | Critical RCE (CVSS 9.2) |
| CVE-2026-115560 | Session | Session serializer mismatch via ini_set()
|
Critical RCE |
| CVE-2026-129481 | Session | Use-after-free after interrupted session shutdown | Memory corruption / RCE |
| CVE-2026-129474 | Core | Use-after-free in magic method backtraces | Potential RCE |
| CVE-2026-129182 | Core | Use-after-free repopulating last fatal error backtrace | Memory corruption |
| CVE-2026-129496 | Date | Timezone cache use-after-free | Potential RCE |
| CVE-2026-129501 | DOM | Double free during DOM XML serialization | Crash / memory corruption |
| CVE-2026-129538 | CGI | PHP-CGI out-of-bounds read and write on PATH_INFO
|
Memory corruption / crash |
| CVE-2026-129291 | FPM |
epoll use-after-free in FPM event loop |
Local privilege escalation |
| CVE-2026-129292 | FPM | Status endpoint XSS via unescaped user and script fields | Cross-site scripting |
| CVE-2026-128090 | Phar | OpenSSL signature bypass via algorithm downgrade | Signature spoofing |
| CVE-2026-15353 | SOAP | Information disclosure via malformed array dimensions | Memory leak |
| CVE-2026-129506 | SOAP | Use-after-free when processing DTD entity references | Memory corruption |
| CVE-2026-128064 | Standard | Mixed-case HTTPS and FTPS URLs fall back to plaintext | Cleartext exposure |
| CVE-2026-127960 | Standard | Denial of service through folded HTTP response headers | Availability impact |
| CVE-2026-129438 | URI | Incorrect RFC 3986 URI serialization for oversized input | Parsing mismatch |
| CVE-2026-48841 | URI | Bundled uriparser library upgraded to 1.0.3 |
Upstream library fix |
Two secondary fixes deserve extra attention from operations teams. CVE-2026-128090 lets an attacker downgrade the OpenSSL signature algorithm used to verify Phar archives, which matters if your deployment pipeline distributes CLI tools or plugins as signed .phar bundles. Meanwhile, CVE-2026-128064 causes mixed-case scheme strings like Https:// in PHP stream wrappers to downgrade to unencrypted HTTP or FTP, silently stripping TLS transport protection on outbound API calls fed by user-supplied URLs.
Branch support, distro packages, and container images
If you run PHP directly from upstream source or official Windows builds, target 8.5.13, 8.4.28, 8.3.37, 8.2.36, or 8.6.0. Note that PHP 8.2 reaches end of life on December 31, 2026, leaving barely six weeks before upstream security patches stop altogether. Every PHP 8.1 and older branch is already end of life with no upstream fixes planned, just as legacy runtimes proved vulnerable during recent Rails ImageMagick upload flaws.
Linux distribution status varies across vendors right now. Debian 12 and Debian 13 security repositories have already shipped patched builds (8.2.36-1~deb12u1 and 8.4.28-1~deb13u1), while Debian testing and unstable remain on 8.4.27-1 as of November 19. Ubuntu, Alpine, and Red Hat Enterprise Linux still show pending evaluation or no published advisory on upstream trackers, though commercial backport images from vendors like Aikido Images already ship patched builds under existing version tags.
Container users should watch out for cached base layers. Running docker build without --pull can keep an unpatched October image in your build cache even after Docker Hub refreshes the 8.4-fpm or 8.5-fpm tags.
Expand
Screenshot of PHP code inside a web development environment
Image: lmonk72 via Wikimedia Commons, CC0
Step-by-step audit and remediation runbook
Neither the PHP maintainers nor the vulnerability reporters have observed active exploitation in the wild yet, and none of the 18 CVEs appear in the CISA Known Exploited Vulnerabilities catalog as of November 19. Given how quickly PHP2Shell moved from disclosure to scanning last month, treating this window as a brief grace period is the safest posture.
Follow this order of operations across your fleet:
- Check both the CLI binary and the exact PHP binary serving web traffic. Run
php -von hosts anddocker run --rm --entrypoint php IMAGE_NAME -von container images, then confirm your PHP-FPM master binary matches. - Inspect
session.save_handlerandsession.serialize_handlerin your active FPM pool config. Ifsession.save_handlerisfiles, prioritize those hosts at the top of your patch queue. - Audit nginx, Apache, and HAProxy configs for FastCGI connection reuse (
fastcgi_keep_conn onorenablereuse=on). Turn off reuse temporarily if you cannot patch PHP-FPM within 24 hours. - Set
session.upload_progress.enabled = 0inphp.inior viaphp_admin_flagin your FPM pool and restart PHP workers if you need a stopgap for CVE-2026-115560. Remember that this closes only one attack path and does not protect against CVE-2026-129289 or every PHPAfterShell trigger. - Rebuild container images with
docker build --pull --no-cacheonce your base image tag updates, and explicitly setsession.upload_progress.enabled = 1only if your application actually relies on PHP's built-in upload progress tracker. - Schedule a migration off PHP 8.2 before December 31, 2026 so your team does not face the next critical PHP advisory on an unsupported runtime.
Verifying PHP-FPM pools and reverse proxy configs in production
Because CVE-2026-129289 depends on how your web server talks to PHP-FPM, patching the PHP binary is only half of the verification story for high-traffic sites. On nginx servers, inspect /etc/nginx/conf.d/ and site vhost files for fastcgi_keep_conn on inside upstream blocks. On Apache HTTP Server, search httpd.conf or mods-enabled/proxy_fcgi.conf for enablereuse=on on ProxyPass or ProxySet directives. Disabling connection reuse for 24 to 48 hours while rolling out 8.5.13 or 8.4.28 adds negligible latency for most workloads and completely blocks the request smuggling vector.
Similarly, teams running multi-tenant hosting or legacy CMS applications should grep their codebase for ini_set('session.serialize_handler' or ini_set("session.serialize_handler". Any script that switches between php_serialize, php_binary, and php at runtime needs immediate patching against CVE-2026-115560, even if session.upload_progress.enabled was toggled off in a global config file. Pairing the November 19 PHP builds with explicit php_admin_value locks in your FPM pool definitions ensures individual virtual hosts cannot silently re-enable risky defaults.
Originally published on Mango Developer.


Top comments (0)