phpAfterShell: Critical PHP Session RCE (CVSS 9.2) Patched, Cloudflare WAF Rules Updated
Cloudflare Blog · rss · 2026-11-21
- The flaw: Disclosed Nov 19, 2026 by depthfirst, phpAfterShell (CVE-2026-126714) exploits PHP's default file-based session handler for remote code execution, scoring 9.2/10 on CVSS 4.0. PHP shipped same-day fixes in 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0, addressing 17 vulnerabilities total, seven rated critical.
- How it works: When a session write is interrupted, the file can contain a mix of new and old session data; on the next sessionstart() call, PHP deserializes attacker-controlled objects. Common injection vectors include session upload progress and storing large user-controlled strings. depthfirst achieved code execution without an application gadget by chaining an undisclosed memory-corruption bug in a PHP-native class.
- Other critical flaws: Include a PHP-FPM request smuggling bug (CVE-2026-129289, requires reused FastCGI connections), session serializer mismatch object injection (CVE-2026-115560), and several use-after-free bugs tied to timezone cache and fatal error backtraces — all needing specific configurations.
- Cloudflare WAF: Its PHP RCE rule (originally deployed for php2shell in October) already partially matched phpAfterShell patterns and was updated on Nov 19; it Block-by-default on all plans including Free. Three new rules for paid plans (PHP-FPM smuggling, two SOAP extension flaws) default to Log.
- Impact: Affected versions are pre-fix 8.2–8.5 and 8.6.0 RCs; PHP 8.1 and older are EOL but may still be exposed to CVE-2026-115560. No in-the-wild exploitation observed and nothing listed in CISA's Known Exploited Vulnerabilities catalog as of Nov 19. WAF is an extra layer — full remediation requires upgrading PHP and restarting every worker.
More from Safety
- Lean community certifies Riemann proof; honeypot fake keys expose breaches at three AI providers — LeviTurk · 2026-11-22
- Intruder swapped Prime Intellect's hosted DeepSeek for an abliterated copy for 53 hours — mawcopolow · 2026-11-22
- Dragos finds three hacked AI hosts whose operators had no idea they were breached — mawcopolow · 2026-11-22
- Who do you sue when an AI agent errs? The "sovereign agents" liability debate — QuixiAI · 2026-11-22
- Opinion: without provenance, 'ethical AI' is just a slide deck — AryHHAry · 2026-11-22
- OpenAI board member Christiano puts AI takeover risk at ~10% within a year — TheAIGRID · 2026-11-22