← back to popular plugins
wordfence / plugin · w3-total-cache
W3 Total Cache
w3-total-cache
total installs
900,000
total vulns
3
critical
1
high
2
medium
0
low
0
latest vuln
—
patched
3
unpatched
0
avg time to patch
—
vulnerabilities
(3)
W3 Total Cache <= 2.9.3 - Unauthenticated Security Token Exposure via User-Agent Header
high
✓ patched
cve id
CVE-2026-5032 ↗
cvss score
7.5
cwe
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
published
Apr 1, 2026
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.
W3 Total Cache <= 2.9.1 - Unauthenticated Arbitrary Code Execution
critical
✓ patched
cve id
CVE-2026-27384 ↗
cvss score
9.8
cwe
CWE-94: Improper Control of Generation of Code ('Code Injection')
published
Feb 24, 2026
The W3 Total Cache plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.9.1. This makes it possible for unauthenticated attackers to execute code on the server.
W3 Total Cache <= 2.8.12 - Unauthenticated Command Injection
high
✓ patched
cve id
CVE-2025-9501 ↗
cvss score
8.1
cwe
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
published
Oct 27, 2025
The W3 Total Cache plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.8.12 via _parse_dynamic_mfunc . This makes it possible for unauthenticated attackers to execute code on the server when comments are enabled and a post has been incorrectly injected with the mfunc tags. Please note we consider this to be a theoretical issue, and as such we rejected the original report from the researcher who then submitted this to WPScan. WPScan assigned a CVE ID, but we do not agree that this is a true security vulnerability. Exploitation of this issue is theoretical and requires gaining access to a secret value much like gaining access to a password.