PHP confirms third PHP2Shell-era RCE, CVE-2026-115560

PHP acknowledges a separate, configuration-dependent RCE in session upload progress, days after emergency fixes. Disabling upload progress blocks it.

Yellow faceted stone blocks form a wall with mortar oozing from a gap, beside a weathered wooden board and a metal clamp on a dark
AI illustration

Two days after shipping emergency fixes for the PHP2Shell vulnerabilities, the PHP project has acknowledged another remote code execution flaw, CVE-2026-115560. The PHP security team says it is a separate bug, not a bypass of the earlier patches, and that it only applies to an unusual configuration. A fix is due in the next regular bugfix release.

What the new bug requires

According to the PHP security team’s 23 October advisory, CVE-2026-115560 needs a narrow combination of conditions:

  • session.serialize_handler is configured as php_binary or php_serialize.
  • Application code switches it to php with ini_set() before calling session_start().
  • session.upload_progress.enabled remains enabled.

In short, the application swaps the session serialization mechanism at runtime while upload progress tracking is on. PHP describes this setup as unlikely in normal deployments. A full advisory will accompany the next regular release.

Official mitigation

Until the fix ships, PHP recommends disabling upload progress in the server configuration:

session.upload_progress.enabled = 0

After changing the setting, restart all PHP workers. The setting must be applied at the effective server level, before request parsing. Setting it from application code with ini_set() does not work, because upload progress handling can run before application code executes. Administrators should confirm the value for the PHP SAPI that actually serves web traffic.

Anyone who already disabled upload progress in response to the 21 October advisory does not need to do anything more for this vector.

Disabling upload progress addresses this specific issue only. It is not a complete mitigation for the original 21 October CVEs, so those patches must stay installed. Applications that change session serializers at runtime should also be reviewed, and all components sharing session storage should use compatible serialization formats.

Background: the original PHP2Shell CVEs

The 21 October advisory covered two critical flaws that can allow unauthenticated remote code execution:

  • CVE-2026-109618: RCE via out-of-memory corruption during initialization of internal request data.
  • CVE-2026-109619: RCE via stale global state, where request-owned memory can be reused by a later request on the same worker. Session upload progress is one confirmed attack path.

Fixed upstream releases are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. PHP 8.1 and earlier are out of upstream support, though the PHP team supplied minimal source backports for 7.4, 8.0 and 8.1.

Researchers running honeypots reported 35 successful command execution requests on 24 October against PHP 8.4.26 under Apache mod_php, an unpatched version. The activity was consistent with CVE-2026-109618. The findings do not show exploitation of patched versions or of CVE-2026-115560.

Syhunt’s hardening toolkit

Syhunt has published php2shell-protection on GitHub, a small test kit for checking whether an Apache .htaccess rule rejects multipart/form-data POST requests while still allowing ordinary URL-encoded POSTs. It also includes example request body limits, such as an 8 MiB LimitRequestBody for sites that do not need uploads.

Syhunt stresses that the project is defense in depth, not a substitute for updating PHP. Blocking multipart POSTs does not address the general out-of-memory flaw and is only a partial control for the others. The toolkit has not been independently validated as a complete mitigation for CVE-2026-115560.

Key takeaways

  • CVE-2026-115560 is a separate, configuration-dependent RCE, not a bypass of the 21 October fixes.
  • Set session.upload_progress.enabled = 0 at server level and restart all PHP workers; no action is needed if it is already disabled.
  • Keep the 21 October PHP updates installed and upgrade unpatched versions first.
  • Syhunt’s multipart-blocking toolkit is a supplementary measure, not a replacement for patching.