Home / Blog / PHP Patches Seven Critical RCE Vulnerabilities
Tech News

PHP Patches Seven Critical RCE Vulnerabilities

PHP rolled out updates across five branches to patch seven critical remote code execution vulnerabilities in session management, FastCGI, and caching.

By Dillip Chowdary • Nov 19, 2026 • Source: SecurityWeek

PHP Patches Seven Critical RCE Vulnerabilities
Image: SecurityWeek

At a glance

Product
PHP runtime
Patched versions
PHP 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36
Release schedule
Four-week update schedule
Vulnerability count
Seven critical RCE and 10 high/medium flaws
Unaffected version
PHP 8.2 unaffected by CVE-2026-129481

PHP rolled out a scheduled set of security updates addressing seven critical remote code execution vulnerabilities across its supported branches, according to SecurityWeek's report. The maintenance releases resolve several memory corruption, use-after-free, and parser flaws that could allow unauthenticated attackers to crash background worker processes or execute arbitrary code with worker privileges.

This technical report details the mechanics of the disclosed session handling, FastCGI smuggling, and caching vulnerabilities for systems administrators, DevOps engineers, and security teams managing PHP infrastructure. It examines the prerequisites necessary for practical exploitation and outlines the maintenance releases rolled out across the active PHP release branches to secure web environments.

01Session upload progress and decoder mismatches

The first critical vulnerability addressed in the rollout is tracked as CVE-2026-115560, which was publicly disclosed last month just two days after PHP2Shell patches landed. The security flaw resides within the session upload progress feature and can be triggered by writing attacker data using one session serialization format and subsequently reading it with an alternate format.

The underlying flaw occurs because a mismatched decoder can interpret portion of an incoming session key as serialized object data. When an application codebase contains a suitable object gadget chain, an attacker can leverage this parsing discrepancy to achieve arbitrary code execution operating with the full privileges of the PHP worker process.

Because the session upload progress feature automatically handles multipart file uploads, attackers can target endpoints that accept form submissions without needing prior authentication. Exploitation turns standard session serialization routines into an object injection vector whenever applications rely on affected session format decoders.

02Unresolved session shutdown memory corruption

Tracked as CVE-2026-129481, the second vulnerability is a use-after-free flaw that occurs after an application session shutdown has been interrupted. PHP described this defect as an incomplete fix for CVE-2026-109619, which is one of the two original PHP2Shell flaws resolved in October and currently subject to widespread active exploitation across the internet.

An attacker capable of causing session cleanup to fail can corrupt memory or crash a reused PHP worker. While the use-after-free in CVE-2026-129481 could potentially lead to code execution, demonstration has not succeeded. Similarly, CVE-2026-129182 covers additional use-after-free scenarios tied to stale global state from CVE-2026-109619 where code execution remains unproven.

Note: PHP 8.2 is not affected by the CVE-2026-129481 session cleanup flaw. Installations running subsequent major branches remain vulnerable to worker memory corruption and potential process crashes if session shutdowns are disrupted before completion. Production teams running newer branches must deploy the updated binaries to prevent stability failures.

03Serialization write interruptions and fatal errors

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Impacting PHP 8.5 and later releases, CVE-2026-129474 is a critical use-after-free vulnerability that enables an unauthenticated attacker to trigger a fatal error and achieve remote code execution. Exploitation depends on application design and requires sufficient control over request data to manipulate memory allocation, an accessible magic method call, and an error at the exact execution step.

A separate serialization vulnerability, tracked as CVE-2026-126714, allows attackers capable of influencing session content to interrupt the writing of serialized data to a session file. Interrupting this file write triggers the deserialization of attacker-controlled data when the session file is subsequently reopened by the application.

If an application contains a viable object gadget chain, successful exploitation of CVE-2026-126714 enables remote code execution without requiring authenticating credentials. Applications that expose session manipulation mechanisms to unauthenticated visitors face the highest risk from this corrupted file deserialization vector.

04Persistent connection FastCGI request smuggling

The updates address CVE-2026-129289, a critical request smuggling issue affecting PHP-FPM and LSAPI environments. The vulnerability arises because PHP reads request-body data streams lazily, treating incoming payloads as handled during the request shutdown phase while omitting the standard cleanup process that discards unread input data.

As a consequence of this lazy processing, PHP can fail to discard unread bytes from an HTTP request body before reusing a persistent connection. In PHP-FPM configurations, an unauthenticated attacker can structure those leftover bytes so they form a distinct FastCGI request on the persistent backend channel.

This smuggled FastCGI request bypasses front-end web server routing rules, rewrite policies, and security protections entirely. Once processed by the worker pool, the smuggled payload executes attacker-controlled PHP code under the privileges and security context of the active PHP-FPM worker process.

05Diagnostic timezone cache and rollout releases

The seventh critical vulnerability, tracked as CVE-2026-129496, resides in PHP’s internal timezone cache. The runtime can retain a memory reference to this cache when writing diagnostic entries to the error log file during process startup, allowing a later diagnostic routine to access the freed cache structure before it resets.

On affected server configurations, a remote attacker can exploit this dangling reference to trigger memory corruption and force the worker process to crash. Under favorable execution conditions, this corruption allows attackers to execute arbitrary code with the system privileges of the PHP worker.

PHP rolled out patches in PHP 8.6.0 and PHP 8.5.13 containing fixes for all seven critical vulnerabilities and 10 high and medium-severity flaws. Backported fixes for most of these issues were also packaged into maintenance releases PHP 8.4.28, PHP 8.3.37, and PHP 8.2.36.

Frequently asked questions

Which PHP versions include fixes for all critical RCE vulnerabilities?

PHP 8.6.0 and PHP 8.5.13 contain fixes for all seven critical bugs and 10 high and medium-severity flaws. Backported fixes for most issues are available in PHP 8.4.28, PHP 8.3.37, and PHP 8.2.36.

How does the CVE-2026-129289 request smuggling vulnerability work?

PHP-FPM reads request bodies lazily and fails to discard unread bytes before reusing persistent connections. An unauthenticated attacker can format residual bytes as a separate FastCGI request to bypass front-end routing and execute code.

What is required to exploit CVE-2026-129474 on PHP 8.5?

Exploitation requires control over sufficient request data to influence memory allocation, a reachable magic method call, and a fatal error at the relevant execution point. Successful attacks allow unauthenticated remote code execution.

Is PHP 8.2 vulnerable to the session cleanup use-after-free bug?

PHP 8.2 is not affected by CVE-2026-129481. However, installations running subsequent releases require updates to prevent worker memory corruption or crashes when session cleanup fails.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →