PHP releases 8.6.0 and patches 17 flaws, including critical 'phpAfterShell' session bug

PHP released versions 8.2.36 through 8.6.0 on November 19, 2026, addressing 17 security vulnerabilities, seven of which are rated critical. The most significant flaw, CVE-2026-126714, known as 'phpAfterShell', affects the default file-based session handler and allows remote code execution if a session write is interrupted. Other critical issues include a FastCGI request smuggling bug (CVE-2026-129289) and multiple use-after-free errors in error backtraces. No evidence of active exploitation was reported, but administrators are urged to upgrade immediately and disable specific features like session upload progress and FastCGI connection reuse as interim mitigations.
Key points
- PHP released 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0 on November 19, 2026, fixing 17 vulnerabilities: seven critical, four high, and six medium.
- CVE-2026-126714 ('phpAfterShell') allows remote code execution via interrupted session writes in the default file handler; it requires specific conditions like session upload progress or large user-controlled strings.
- CVE-2026-129289 enables unauthenticated code execution in PHP-FPM if the front-end reuses FastCGI connections (e.g., nginx with fastcgi_keep_conn) and the application reads php://input incompletely.
- CVE-2026-115560, a session serializer mismatch, is fixed by disabling session upload progress by default; this addresses a flaw previously highlighted in the 'php2shell' briefing.
- CVE-2026-129474 and CVE-2026-129182 are use-after-free bugs in fatal error backtraces, enabled by default in PHP 8.5; setting zend.exception_ignore_args=1 mitigates the former.
- No vulnerabilities were listed in CISA's Known Exploited Vulnerabilities catalog as of November 19, 2026, and no wild exploitation was reported.
Background
This release follows a series of critical PHP vulnerabilities disclosed in October 2026, including CVE-2026-109618 and CVE-2026-109619, which were discovered using AI tools and led to global website shutdowns. The October flaws, part of the 'php2shell' incident, affected versions dating back to 2004 and caused significant disruption, including the offline status of major platforms like Pokémon Home. The current November release addresses remaining gaps from those October patches, such as CVE-2026-129481 and CVE-2026-129182, which are incomplete fixes for CVE-2026-109619. Additionally, PHP had released updated Windows packages in late October to patch a critical Brotli decoder flaw (CVE-2026-111497), highlighting ongoing efforts to secure the language's ecosystem.
Why it matters
PHP powers approximately 70% of the web, making these vulnerabilities a significant risk to global infrastructure. The critical flaws, particularly phpAfterShell and the FastCGI smuggling bug, allow remote code execution under specific configurations, potentially leading to widespread compromise if unpatched. The emphasis on configuration-dependent risks (e.g., FastCGI connection reuse, session upload progress) underscores the need for administrators to audit their setups beyond simple version upgrades. Cloudflare's proactive WAF rules provide a temporary shield, but upgrading remains the definitive solution to prevent exploitation of these high-severity issues.
What to watch
Administrators should immediately upgrade PHP to 8.2.36, 8.3.37, 8.4.28, 8.5.13, or 8.6.0 and restart workers to ensure the new binaries are loaded. Until upgrades are complete, they should disable session.upload_progress.enabled, turn off FastCGI connection reuse, and set fatal_error_backtraces=0 on PHP 8.5/8.6.0. Organizations should also verify that distribution package versions include the fixes, as backports may not change the PHP version number. Monitoring for any signs of exploitation, though none were reported as of November 19, 2026, remains prudent.
Want the full story? Read the original reporting
Read on Zero Wire | Cloudflare Radar