What’s Vulnerable › Vulnerabilities

CVE-2026-18051: W3 Total Cache < 2.10.5 - Unauthenticated Arbitrary Directory File Write and .htaccess Overwrite via Path Traversal in the Page Cache Key

Description

The W3 Total Cache WordPress plugin before 2.10.5 does not properly validate the request path it uses to build cache file names, allowing unauthenticated attackers to write a file into any existing directory on the server, inside or outside the web root, overwriting whatever occupies the target name. On Apache, the same flaw overwrites the site's .htaccess files, which breaks the site and can strip hardening rules that other security measures rely on.

Affected products

How to fix

Upgrade to a fixed version: W3 Total Cache 2.10.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-18051 or the next vulnerability affects your stack