Skip to content
NewA calmer, faster ZeroHour

PHP fixes critical phpAfterShell RCE; Cloudflare WAF blocks known patterns

Original title: How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws

Cloudflare Blogby Daniele Molteni ()9 min read
AI summary · x-ai/grok-4.7Summaries by Vani AI

PHP 8.2.36 through 8.6.0 fix 17 flaws, six more critical, with no known exploitation as of November 19.

depthfirst disclosed phpAfterShell (CVE-2026-126714), a critical flaw in PHP's default file-based session handler that can lead to remote code execution, scoring 9.2 under CVSS 4.0. PHP fixed it the same day in 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0, along with 16 other vulnerabilities. Cloudflare's existing PHP remote-code-execution WAF rule, updated November 19, blocks known phpAfterShell patterns by default, including on the Free plan. Cloudflare says it has seen no sign the flaws are exploited and none were on CISA's KEV catalog.

Unconfirmed: Sources do not establish whether depthfirst's second memory-corruption bug is fixed in the November 19 releases.

Key facts
  • Vulnerable builds are PHP 8.2 before 8.2.36 through 8.5 before 8.5.13, plus 8.6.0 release candidates.
  • Paid-plan rules cover PHP-FPM request smuggling and two SOAP flaws, defaulting to Log.
  • Code execution also needs a useful write interruption and a gadget chain, PHP says.
  • depthfirst says a second, undisclosed memory bug enabled execution without an app gadget.
Security assessment · AI, from the articleNo known exploitation

Impact: Remote code execution through PHP session deserialization

ProductAffectedFixed in
PHP8.2 before 8.2.36, 8.3 before 8.3.37, 8.4 before 8.4.28, 8.5 before 8.5.13, and 8.6.0 release candidates8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0
What to do
  1. 1.Upgrade PHP to a November 19 fixed release and restart every worker.
  2. 2.Review log-only Cloudflare Managed Ruleset matches before changing them to Block.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-115560
+6 related CVEs
Session serializer mismatch RCE in PHP
9.2
group max
71%PoC ×11
CVE-2026-126714
Partial session-file overwrite RCE in PHP
9.213%PoC
CVE-2026-129496
Timezone cache use-after-free can lead to remote code execution
9.2—

Indicators of compromise

auto-extracted · verify before use · export allAll
TypeIndicatorContext
md500a23de67a684876ba67c5d44521b81997e44837a3214b5ba54028d4 Log PHP SOAP - CVE:CVE-2026-129506 00a23de67a684876ba67c5d44521b819 Log To review their matches, go to Security > Analytics > E
md519373a83abb840e18ab3ce5a7975ce1b9618, CVE-2026-109619, CVE-2026-115560, CVE-2026-126714) #6 19373a83abb840e18ab3ce5a7975ce1b Cloudflare Free Managed Ruleset (Free plan) Block PHP Remot
md54148ae686fdb4d01be673fab9d9c073d9618, CVE-2026-109619, CVE-2026-115560, CVE-2026-126714) #6 4148ae686fdb4d01be673fab9d9c073d Cloudflare Managed Ruleset (Pro, Business and Enterprise pl
md55c5a9d6397e44837a3214b5ba54028d4a424b4ccfa6f6fe186c6f42b2 Log PHP SOAP - CVE:CVE-2026-15353 5c5a9d6397e44837a3214b5ba54028d4 Log PHP SOAP - CVE:CVE-2026-129506 00a23de67a684876ba67c5d4
md58ef1c34a424b4ccfa6f6fe186c6f42b2iption Rule ID Default action PHP-FPM - CVE:CVE-2026-129289 8ef1c34a424b4ccfa6f6fe186c6f42b2 Log PHP SOAP - CVE:CVE-2026-15353 5c5a9d6397e44837a3214b5ba
md5efb7b8c949ac4650a09736fc376e9aeeules are part of the Cloudflare Managed Ruleset (Ruleset ID efb7b8c949ac4650a09736fc376e9aee) and are available on Pro, Business and Enterprise plans. R

From the original article

9 min read at blog.cloudflare.com

phpAfterShell is a critical flaw in PHP's default session handler that can lead to code execution. Cloudflare WAF blocks it for all customers, including Free plans, and adds new rules for other PHP flaws fixed in the same release.

Cloudflare Blog

By Daniele Molteni · blog.cloudflare.com

Read the full article at Cloudflare Blog

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.