Security Bulletin: November 2026 PHP Advisory (CVSS 9.2)

PHP Fixes 7 Critical Flaws: Deep Dive into CVE-2026-115560, phpAfterShell & FastCGI Smuggling

By bspeka Security Research • November 20, 2026 • 8 min read
Key Finding: In late November 2026, the PHP maintenance team published emergency updates addressing 7 critical flaws (CVSS 9.2) across active branches (8.2.36, 8.3.37, 8.4.28, 8.5.13). Flaws include session-serialization object injection (CVE-2026-115560), the phpAfterShell (CVE-2026-126714) file session TOCTOU race condition, and PHP-FPM FastCGI request smuggling.

Introduction: The November 2026 Emergency PHP Updates

PHP powers more than 75% of the content management systems and dynamic web applications across the global internet. When the PHP maintainers release an out-of-band security update addressing seven critical flaws simultaneously, infrastructure and security engineering teams must act immediately.

Rated 9.2 out of 10 on the CVSS 4.0 scale, this batch of vulnerabilities centers heavily on session serialization anomalies, concurrency issues in file-based session stores, and FastCGI communication multiplexing between web servers and PHP-FPM.

1. CVE-2026-115560: Session Serialization Mismatches & Upload Progress RCE

PHP allows administrators and developers to configure how session data is serialized via the session.serialize_handler directive. Supported formats include php, php_binary, and php_serialize.

Under CVE-2026-115560, when an application utilizes differing serialization handlers across vhosts or scripts—or when the built-in session.upload_progress mechanism is active—an unauthenticated user can pass crafted input strings containing pseudo-serialized markers (such as a pipe character | in the legacy php format).

# Example: Divergent serialization format interpretation
# If written with 'php_serialize':
a:1:{s:12:"upload_data";s:24:"|O:10:"EvilGadget":0:{}";}

# But subsequent script parses with legacy 'php' handler:
# The pipe character '|' triggers deserialization of the injected object!

When subsequent requests deserialize this corrupted session payload using the standard handler, PHP instantiates attacker-specified object graphs, enabling Property-Oriented Programming (POP) gadget execution and remote shell access.

2. phpAfterShell (CVE-2026-126714): File Session TOCTOU Exploitation

Colloquially named phpAfterShell, CVE-2026-126714 resides within PHP's default file-based session storage module (ext/session/mod_files.c).

When a client submits an HTTP request that updates session state, PHP locks the session file, computes the serialized data, and writes the contents to disk. However, security researchers identified a Time-of-Check Time-of-Use (TOCTOU) race condition during socket close events:

"phpAfterShell demonstrates that relying on local filesystem concurrency locks without atomic temporary file swapping leaves default PHP installations exposed to high-concurrency race conditions."

3. FastCGI Request Smuggling & Use-After-Free Vulnerabilities

The update also addresses CVE-2026-129289 in PHP-FPM (FastCGI Process Manager). Under specific reverse-proxy architectures (e.g. Nginx or HAProxy passing FastCGI requests over persistent connections), an attacker can smuggle FastCGI protocol frames and overwrite environment variables (such as SCRIPT_FILENAME or PHP_VALUE), coercing PHP-FPM into executing arbitrary code.

Furthermore, three high-severity Use-After-Free vulnerabilities (CVE-2026-129182, CVE-2026-129481, and CVE-2026-129496) occurring during fatal request shutdowns, timezone cache invalidations, and backtrace generation were remediated.

Affected Versions Matrix

Branch Vulnerable Versions Fixed Release Severity
PHP 8.2 8.2.0 – 8.2.35 8.2.36+ Critical (CVSS 9.2)
PHP 8.3 8.3.0 – 8.3.36 8.3.37+ Critical (CVSS 9.2)
PHP 8.4 8.4.0 – 8.4.27 8.4.28+ Critical (CVSS 9.2)
PHP 8.5 8.5.0 – 8.5.12 8.5.13+ Critical (CVSS 9.2)
PHP 8.6 8.6.0+ 8.6.0+ Patched
PHP 8.1 & Older All versions None (End-of-Life) Permanently Vulnerable

Actionable Defense & Remediation Plan

  1. Update PHP Packages & Restart Services

    Apply the distribution updates immediately and restart your FastCGI pools:

    # Ubuntu / Debian
    sudo apt-get update && sudo apt-get --only-upgrade install php8.4-fpm php8.4-cli
    
    # Verify version
    php -v
    
    # CRITICAL: Restart FastCGI Process Manager
    sudo systemctl restart php8.4-fpm
    sudo systemctl restart nginx
  2. Harden Session Configuration

    In your php.ini, disable upload progress tracking if unnecessary and lock in a single serializer format:

    ; Disable unauthenticated upload progress tracking
    session.upload_progress.enabled = Off
    
    ; Enforce standard serialization
    session.serialize_handler = php_serialize
    
    ; Suppress version banners
    expose_php = Off
  3. Migrate Away from File-Based Session Storage

    Neutralize the phpAfterShell TOCTOU race condition completely by switching to Redis with atomic locking:

    session.save_handler = redis
    session.save_path = "tcp://127.0.0.1:6379?auth=secret_key&prefix=PHPREDIS_SESSION:"

Audit Your Attack Surface for PHP 7 Critical Flaws

bspeka automatically fingerprints public PHP interpreters, detects session engine exposures, and continuously checks for unpatched vulnerabilities across your entire domain fleet.

View PHP Scanner Details Start Free Scan →