CVE-2026-135616 in W3 Total Cache Plugininfo

Summary

by MITRE • 11/27/2026

The W3 Total Cache plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 2.11.0 via deserialization of untrusted input that is injected into the Memcached object cache through request Host header key truncation. This allows authenticated attackers, with subscriber-level access and above, to inject a PHP Object. The additional presence of a POP chain (the bundled Guzzle FileCookieJar, reached through the W3TC\CdnEngine_S3 autoload bridge) allows attackers to write arbitrary files and execute code. This requires the Object Cache to be enabled with the Memcached method backed by the pecl memcache extension and Minify to be enabled; using the same key collision, the attacker first escalates from Subscriber to Administrator.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in W3 Total Cache versions up through 2.11.0 represents a critical security flaw rooted in improper handling of untrusted input during PHP object deserialization processes. Specifically, the issue arises when the plugin interacts with the Memcached object cache backend via the pecl memcache extension. The attack vector involves manipulating the Host header within HTTP requests to exploit key truncation mechanisms inherent in how certain caching implementations handle string lengths or hash collisions. By carefully crafting request headers that result in a specific key collision, an authenticated attacker can manipulate internal state variables associated with cached objects. This manipulation allows for the injection of serialized PHP data structures into memory spaces intended for legitimate cache entries, effectively bypassing standard input validation checks because the system treats these injected payloads as valid configuration or object states rather than malicious code inputs.

The technical mechanism relies on a combination of header-based key truncation and subsequent deserialization flaws. When an attacker with subscriber-level access or higher sends a specially crafted request, they can force the application to deserialize untrusted data containing arbitrary PHP objects. This process is facilitated by the presence of specific gadget chains within the plugin's dependencies. Notably, the Guzzle HTTP client library included in the package contains a FileCookieJar class that serves as part of a Proof of Concept (POP) chain. Through an autoload bridge involving W3TC\CdnEngine_S3, this gadget chain can be triggered during normal operations such as content delivery network synchronization or minification processes. The execution flow allows the attacker to leverage these internal methods to perform file system writes and ultimately achieve remote code execution on the target server.

From a classification perspective, this vulnerability aligns with CWE-502, which denotes Deserialization of Untrusted Data, indicating that the application fails to validate or sanitize data before passing it to functions capable of reconstructing complex object structures from serialized formats. Furthermore, the exploitation technique maps directly to MITRE ATT&CK techniques related to Command and Scripting Interpreter execution via file creation or modification, as well as potential privilege escalation pathways if the initial access is limited. The requirement for specific configuration states—namely that Object Cache must be enabled with Memcached support and Minify functionality active—narrows the attack surface but does not eliminate risk for a significant portion of WordPress installations utilizing these performance optimization features.

The operational impact of this vulnerability is severe, allowing authenticated attackers to escalate their privileges from low-level subscriber accounts to full administrative control over the WordPress installation. Once elevated access is achieved through the key collision and subsequent state manipulation, the attacker can execute arbitrary code with the permissions of the web server process. This capability enables complete compromise of the underlying system, including potential data exfiltration, defacement, or use as a pivot point for further network intrusion. The ability to write arbitrary files also facilitates persistence mechanisms, such as placing backdoors in accessible directories that survive plugin updates or core WordPress upgrades unless specifically targeted by security audits.

Mitigation strategies must address both the immediate configuration risks and long-term code integrity issues. Administrators should immediately disable the Memcached object cache backend if it is not strictly necessary for their performance requirements, opting instead for database-based caching which does not suffer from this specific deserialization vector. Alternatively, upgrading to a patched version of W3 Total Cache that resolves the key truncation logic and validates serialized data before processing is essential. Security teams should also enforce strict input validation on all HTTP headers processed by WordPress plugins and ensure that PHP error reporting is configured to log serialization warnings or errors for early detection attempts. Regular auditing of installed plugins against known vulnerability databases remains critical, as does restricting user registration capabilities where feasible to limit the pool of potential attackers capable of initiating this chain.

Responsible

Wordfence

Reservation

11/23/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00715

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!