PHP Session Handler Flaw Enables RCE Even After Prior Patch
Written by AI from the linked story. Not reviewed by an editor. How this works
CVE-2026-126714 demonstrates how a seemingly complete fix can leave residual attack surface: attackers found a new path through PHP's default file-based session handler that the PHP2Shell patch did not address, achieving unauthenticated remote code execution via corrupted session files and object deserialization. The root issue is a combination of insecure default configuration (session.upload_progress.enabled on by default) and an incomplete prior remediation, compounding risk for organizations that believed they were protected. With a CVSS score of 9.2, this is a critical-severity flaw affecting a widely deployed runtime, meaning delayed patching exposes a vast attack surface. This incident reinforces that patching one vulnerability does not guarantee immunity from related attack chains, and that secure defaults must be validated independently of patch status.
Tactical Insight
Immediate actions
- Upgrade PHP to the fixed versions (8.2.36, 8.3.37, 8.4.28, or 8.5.13) as an emergency change.
- Disable `session.upload_progress.enabled` in `php.ini` on all servers where upgrading immediately is not feasible.
- Audit all internet-facing PHP applications to confirm which PHP version and session handler configuration is in use.
Long-term improvements
- Maintain a complete, up-to-date software inventory (including runtime versions) to enable rapid scoping when new CVEs are published.
- Establish a formal emergency patching SLA for CVSS 9.0+ vulnerabilities that mandates remediation within 24–72 hours.
- Review and harden PHP default configurations organisationally, disabling unnecessary features such as session upload progress by policy.
Detection measures
- Deploy runtime application self-protection (RASP) or a web application firewall with rules targeting session file manipulation and deserialization payloads.
- Enable centralised logging of PHP error output and session handler activity to detect anomalous deserialization or memory corruption events.
- Run continuous vulnerability scanning against internet-facing assets so newly published CVEs are automatically flagged against your inventory.