Cloudflare details phpAfterShell critical PHP flaw as security patches roll out

Cloudflare has detailed WAF protections for phpAfterShell, a critical PHP session-handling vulnerability, as the PHP project releases security fixes.
PHP programming language official logo, accompanying phpAfterShell security advisory
Official PHP logo by Colin Viebrock, CC BY-SA 4.0; source Wikimedia Commons. Cropped or displayed within article layout; not a Cloudflare-owned image.

Cloudflare has published new guidance on phpAfterShell, a critical vulnerability in PHP’s default file-based session handling that researchers say can be chained to achieve remote code execution under affected configurations. The Cloudflare analysis was published on 20 November 2026, a day after security researchers at depthfirst disclosed the flaw and the PHP project released security updates.

What the researchers disclosed

The vulnerability, tracked as CVE-2026-126714, has a CVSS 4.0 severity score of 9.2, according to depthfirst. The researchers describe a problem involving interrupted writes to PHP session files during upload-progress processing. Under specific conditions, corrupted session data can later be interpreted as valid application state, potentially enabling object deserialization and, when chained with another flaw, arbitrary code execution.

Depthfirst says the issue is relevant to applications that use PHP’s file-based session storage, the language’s default. Exposure depends on the PHP version, session configuration and whether the vulnerable request path is reachable. The disclosure does not establish that every PHP-powered website can be exploited.

Security updates are available

The PHP project issued security releases on 19 November. The fixed versions identified by the researchers are PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13; PHP 8.6.0 was also released that day. Administrators should identify which supported PHP branch their applications use and upgrade to the corresponding fixed release, rather than assuming a previous security update covers this newly disclosed issue.

For organisations operating multiple websites, managed hosting environments or containerised PHP services, the response requires checking the runtime actually serving traffic. Updating application code or a web server configuration alone does not necessarily update the underlying PHP runtime. Cloudflare also advises restarting PHP workers after upgrading so that patched binaries are in use.

What Cloudflare says its firewall can do

In its 20 November technical post, Cloudflare says it updated detection logic in a managed web application firewall rule on 19 November to cover known phpAfterShell attack patterns. The company says the rule is included in its Free Managed Ruleset as well as its broader Managed Ruleset and defaults to blocking matching requests.

Cloudflare also described three additional rules for separate PHP-FPM and SOAP vulnerabilities, initially set to log for paying customers because some matching traffic could be legitimate. These protections are not equivalent to a runtime patch: Cloudflare cautions that certain weaknesses depend on configuration or can be reached through paths that a web application firewall does not inspect.

What remains uncertain

Cloudflare reported no indication of exploitation in the wild for the newly discussed PHP issues as of 19 November and said none of the 17 vulnerabilities covered by the latest releases appeared in CISA’s Known Exploited Vulnerabilities catalogue at that point. That is a time-limited observation, not a guarantee that exploitation will not occur.

Website operators should review their PHP versions and session-storage configuration, apply the relevant security updates and consult their hosting providers where runtime management is outsourced. The disclosure matters beyond any single content management system because the affected behaviour is in PHP itself.

Primary sources and advisories

Featured-image credit: PHP logo by Colin Viebrock, licensed under CC BY-SA 4.0, via Wikimedia Commons.

Total
1
Shares
Leave a Reply

Previous Post
Official Cloudflare artwork accompanying its nginx2root security research

Cloudflare details nginx2root vulnerabilities as nginx security updates roll out

Next Post
Official Ruby programming language gemstone emblem, accompanying ruby2shell security advisory

Cloudflare rolls out protections for ruby2shell Ruby vulnerability as patches become available

Related Posts