[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fy329jFAm0mehXKGbnSWVRQM0jeV-zTdRzbgvDm3pRr0":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"241a6ffc-d285-42e3-88ba-c772a2f09d19","php-session-race-condition-enables-remote-code-execution-without-patches","127c52bb-9987-4566-bd46-6f497573869e","PHP Session Race Condition Enables Remote Code Execution Without Patches","A critical flaw (CVE-2026-126714, CVSS 9.2) in PHP's default file-based session storage allows attackers to inject malicious objects by interrupting a session write at precisely the right moment, which — when a usable gadget chain exists in the application — leads to remote code execution. The vulnerability is worsened by PHP's default configuration enabling upload progress tracking, which creates the write-interrupt window that attackers exploit. Patches are available across all supported PHP branches, and interim mitigations (disabling upload progress, switching session handlers) can close the attack surface without upgrading. This incident illustrates how insecure defaults compounded with delayed patching can elevate a subtle language-level quirk into a full system compromise.","**Immediate actions:**\n- Apply PHP patches 8.2.36, 8.3.37, 8.4.28, 8.5.13, or 8.6.0 to all PHP runtime environments immediately.\n- Disable PHP's upload progress feature (`session.upload_progress.enabled = Off`) as a short-term mitigation on systems that cannot be patched right away.\n- Replace file-based session storage with a memory-backed alternative (e.g., Redis or Memcached) to eliminate the vulnerable write-interrupt window.\n\n**Long-term improvements:**\n- Maintain a complete, up-to-date inventory of all PHP versions in use across every application environment to enable rapid targeted patching.\n- Establish a formal patch SLA for critical (CVSS ≥ 9.0) vulnerabilities that mandates remediation within 24–72 hours of patch availability.\n- Audit application dependencies for exploitable gadget chains (using tools such as phpggc) to understand true exploitability risk before patches are deployed.\n\n**Detection measures:**\n- Deploy runtime application self-protection (RASP) or a web application firewall rule to flag anomalous session file manipulation patterns.\n- Monitor PHP error logs and file-system activity on session storage directories for unexpected write interruptions or unusual object serialization events.\n- Integrate continuous vulnerability scanning into CI\u002FCD pipelines to detect newly disclosed CVEs against the PHP version in use before they reach production.",[12,13,14,15,16],"CIS Control 7: Continuous Vulnerability Management (v8)","CIS Control 4: Secure Configuration of Enterprise Assets and Software (v8)","NIST SP 800-53 SI-2: Flaw Remediation","OWASP A08:2021 Software and Data Integrity Failures","NIS2 Article 21(2)(e)",{"NIS2 Article 21(2)(e)":18,"NIST SP 800-53 SI-2: Flaw Remediation":19,"OWASP A08:2021 Software and Data Integrity Failures":20,"CIS Control 7: Continuous Vulnerability Management (v8)":21,"CIS Control 4: Secure Configuration of Enterprise Assets and Software (v8)":22},"This provision requires security in acquisition, development, and maintenance including vulnerability handling, directly covering the need to patch CVE-2026-126714 and harden PHP's default session configuration.","SI-2 requires organizations to identify, report, and correct information system flaws in a timely manner, which covers the obligation to apply the released PHP security patches.","This category covers insecure deserialization and object injection flaws — the exact mechanism by which the interrupted PHP session write enables attackers to inject and execute malicious objects.","CIS Control 7 requires organizations to continuously assess and remediate vulnerabilities; applying the available PHP patches promptly would have directly prevented exploitation of CVE-2026-126714.","CIS Control 4 mandates hardening default software configurations; disabling PHP's upload progress setting by default would have removed the primary attack primitive this vulnerability relies on.","published","2026-11-19T19:21:55.509835+00:00","2026-11-19T19:21:55.493+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fthehackernews.com\u002F2026\u002F11\u002Fphpaftershell-explained-how-hackers.html","phpaftershell-explained-how-hackers-could-turn-a-php-session-flaw-into-code-exec-ea8ceb","phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"859cf0ad-a7e9-42bb-a75d-bac6511fa5d5","Configuration Management","configuration-management","Misconfigs, default credentials, exposed services","#eab308",{"id":38,"name":39,"slug":40,"description":41,"color":42},"af7fce9e-1ce8-4156-93bc-09dcfbfdf29d","Patch Management","patch-management","Unpatched vulnerabilities, delayed updates","#ef4444",[],[45,49,52],{"slug":46,"name":47,"problem":48},"vulnerability-management","Vulnerability scanning and prioritisation","You know which systems are vulnerable, and which ones to fix first.",{"slug":40,"name":50,"problem":51},"Automated patch management","Known holes get closed in days, not months.",{"slug":53,"name":54,"problem":55},"endpoint-detection-response","Endpoint detection and response (EDR and XDR)","Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped."]