W3 Total Cache <= 2.9.3 - Unauthenticated Security Token Exposure via User-Agent Header
Strategic Overview
- Status
- Patched in 2.9.4
- Affected Plugin
- W3 Total Cache
- Affected Version
<= 2.9.3- CVSS
- 7.5High
- Weakness type
- CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
- CVE
CVE-2026-5032
At a glance
CVE-2026-5032 is a high-severity Exposure of Sensitive Information to an Unauthorized Actor vulnerability in the W3 Total Cache WordPress plugin, affecting versions <= 2.9.3. It carries a CVSS score of 7.5 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires no authentication. The issue is fixed in version 2.9.4; sites on affected versions should update now. Disclosed April 2026, reported by wesley (wcraft).
Vulnerability Overview
The W3 Total Cache plugin for WordPress is vulnerable to information exposure in all versions up to, and including, 2.9.3. This is due to the plugin bypassing its entire output buffering and processing pipeline when the request's User-Agent header contains "W3 Total Cache", which causes raw mfunc/mclude dynamic fragment HTML comments — including the W3TC_DYNAMIC_SECURITY security token — to be rendered in the page source. This makes it possible for unauthenticated attackers to discover the value of the W3TC_DYNAMIC_SECURITY constant by sending a crafted User-Agent header to any page that contains developer-placed dynamic fragment tags, granted the site has the fragment caching feature enabled. With the leaked W3TC_DYNAMIC_SECURITY token, an attacker can craft valid mfunc tags to execute arbitrary PHP code on the server, achieving remote code execution.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on confidentiality.
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Reaching this weakness in W3 Total Cache <= 2.9.3 takes no account at all. Sensitive information exposure means data the application intended to keep internal is returned to a caller who should not be able to see it.
The disclosed data — credentials, tokens, customer records or internal paths — is usually worth more as material for a follow-up attack than as an end in itself. For W3 Total Cache the fix is 2.9.4: builds <= 2.9.3 are affected, anything from 2.9.4 onward is not.
Remediation
Update to version 2.9.4, or a newer patched version
How does WordSec protect against this?
This one needs no account at all, which puts it outside what login hardening can reach; WordSec's login security narrows the account-level paths around it, and the firewall is what inspects the request itself. None of that substitutes for the fix: W3 Total Cache 2.9.4 closes this, and updating the plugin is the step that ends it.
- Login Security
- Alerts
External References
Related records
Same weakness class
- 7.7CVE-2022-31090: Guzzle <= 6.5.7 and 7.0-7.4.4 - Information Exposure
CVE-2022-31090 - 7.5CVE-2019-6715: W3 Total Cache… File Read / Directory Traversal
CVE-2019-6715 - 7.5CVE-2012-6077: W3 Total Cache <= 0.9.2.4 Password Hash Extraction
CVE-2012-6077 - 7.5CVE-2012-6079: W3 Total Cache <= 0.9.2.4 Info Exposure
CVE-2012-6079
Other vulnerabilities in W3 Total Cache
- 9.8CVE-2026-27384: W3 Total Cache <= 2.9.1 Arbitrary Code Execution
CVE-2026-27384 - 9.8CVE-2013-2010: W3 Total Cache <= 0.9.2.8 Remote Code Execution
CVE-2013-2010 - 8.8W3 Total Cache <= 0.9.4.1 Arbitrary File Upload
- 8.8W3 Total Cache <= 0.9.4 CSRF leading to Stored Cross-Site Scripting
- 8.6W3 Total Cache <= 0.9.4 SSRF leading to Host Information Disclosure
- 8.5CVE-2024-12365: W3 Total Cache <= 2.8.1 Server-Side Request Forgery
CVE-2024-12365 - 8.1CVE-2026-57623: W3 Total Cache <= 2.9.4 Arbitrary Code Execution
CVE-2026-57623 - 8.1CVE-2025-9501: W3 Total Cache <= 2.8.12 Command Injection
CVE-2025-9501
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C