czay.dev
Writing

7 Critical PHP RCE Flaws (CVSS 9.2): phpAfterShell, PHP-FPM Smuggling & Patch Guide

The PHP team patched 17 vulnerabilities—including 7 CVSS 9.2 critical bugs reaching unauthenticated RCE. Audit commands and safe versions for phpAfterShell (CVE-2026-126714) and PHP-FPM request smuggling (CVE-2026-129289).

Furkan ÖzayNovember 20, 2026 · 2 min read
czCZAY.DEV // EDITORIALEN
GÜVENLIK

#Güvenlik · 2 MIN READ

FURKAN ÖZAYVOL. 2026 // #1A4C

PHP maintainers resolved 17 security vulnerabilities, including 7 rated critical at CVSS 9.2, affecting production PHP, Laravel, and WordPress stacks with potential unauthenticated remote code execution (RCE).

1. How the Two Highest-Risk Bugs Work

CVE-2026-126714 — phpAfterShell

When PHP's default file-based session storage is interrupted mid-write, stale session bytes and newly written session data can collide inside the same session file. On a subsequent session_start(), attacker-controlled text can be interpreted and executed as a live serialized object. As part of the fix, session.upload_progress is now disabled by default.

CVE-2026-129289 — PHP-FPM Request Smuggling

If Nginx enables persistent FastCGI connections (fastcgi_keep_conn on;) and application code leaves the php://input stream unread, an attacker can smuggle a second hidden FastCGI request down the reused connection and execute arbitrary commands on the server.

2. Patched PHP Versions

Do not rely solely on config toggles—upgrade both PHP CLI and PHP-FPM binaries directly:

  • PHP 8.2: 8.2.36 or newer
  • PHP 8.3: 8.3.37 or newer
  • PHP 8.4: 8.4.28 or newer
  • PHP 8.5: 8.5.13 or newer

3. Quick Server Audit Commands

Bash
php -v && php-fpm -v 2>/dev/null || true
php -i | grep -E "session\.save_handler|session\.upload_progress"
grep -rn "fastcgi_keep_conn" /etc/nginx/ 2>/dev/null || true

Community

Join czay.dev Lab

Get your architecture reviewed, find help where you're stuck, and hear about critical CVEs and new tools first. No slop; real projects, real questions.

  • architecture-clinic
  • ui-code-surgery
  • radar-and-cve
  • roadmap-check-in
Join on DiscordFree · Developers of every level

Read next