PHP fixes critical phpAfterShell RCE; Cloudflare WAF blocks known patterns
Original title: How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws
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.
- 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.
Impact: Remote code execution through PHP session deserialization
| Product | Affected | Fixed in |
|---|---|---|
| PHP | 8.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 candidates | 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0 |
- 1.Upgrade PHP to a November 19 fixed release and restart every worker.
- 2.Review log-only Cloudflare Managed Ruleset matches before changing them to Block.
- CVEs
- CVE-2026-126714CVE-2026-129289CVE-2026-15353CVE-2026-129506CVE-2026-115560CVE-2026-129496CVE-2026-129481CVE-2026-129474CVE-2026-129182
- Vendors
- PHPCloudflare
- Products
- Cloudflare WAF
- Organizations
- depthfirstCISA
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-115560 | Session serializer mismatch RCE in PHP | 9.2 group max | 71% | PoC ×11 | |
| CVE-2026-126714 | Partial session-file overwrite RCE in PHP | 9.2 | 13% | 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| Type | Indicator | Context |
|---|---|---|
| md5 | 00a23de67a684876ba67c5d44521b819 | 97e44837a3214b5ba54028d4 Log PHP SOAP - CVE:CVE-2026-129506 00a23de67a684876ba67c5d44521b819 Log To review their matches, go to Security > Analytics > E |
| md5 | 19373a83abb840e18ab3ce5a7975ce1b | 9618, CVE-2026-109619, CVE-2026-115560, CVE-2026-126714) #6 19373a83abb840e18ab3ce5a7975ce1b Cloudflare Free Managed Ruleset (Free plan) Block PHP Remot |
| md5 | 4148ae686fdb4d01be673fab9d9c073d | 9618, CVE-2026-109619, CVE-2026-115560, CVE-2026-126714) #6 4148ae686fdb4d01be673fab9d9c073d Cloudflare Managed Ruleset (Pro, Business and Enterprise pl |
| md5 | 5c5a9d6397e44837a3214b5ba54028d4 | a424b4ccfa6f6fe186c6f42b2 Log PHP SOAP - CVE:CVE-2026-15353 5c5a9d6397e44837a3214b5ba54028d4 Log PHP SOAP - CVE:CVE-2026-129506 00a23de67a684876ba67c5d4 |
| md5 | 8ef1c34a424b4ccfa6f6fe186c6f42b2 | iption Rule ID Default action PHP-FPM - CVE:CVE-2026-129289 8ef1c34a424b4ccfa6f6fe186c6f42b2 Log PHP SOAP - CVE:CVE-2026-15353 5c5a9d6397e44837a3214b5ba |
| md5 | efb7b8c949ac4650a09736fc376e9aee | ules 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.
By Daniele Molteni · blog.cloudflare.com
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.