CVE-2025-3897 EUCookieLaw <= 2.7.2 - Unauthenticated Arbitrary File Read
Unauthenticated attackers can read arbitrary server files via path traversal in the EUCookieLaw WordPress plugin when a caching plugin is active.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-3897?
CVE-2025-3897 is a medium-severity path traversal vulnerability in diego-la-monica EUCookieLaw, published on 9 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The EUCookieLaw plugin for WordPress is vulnerable to Arbitrary File Read in all versions up to, and including, 2.7.2 via the 'file_get_contents' function. This makes it possible for unauthenticated attackers to read the contents of arbitrary files on the server, which can contain sensitive information. The vulnerability can only be exploited if a caching plugin such as W3 Total Cache is installed and activated.
Weakness: CWE-22
Which versions are affected by CVE-2025-3897?
How do I fix CVE-2025-3897?
No fix has been published for CVE-2025-3897 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-3897 being exploited?
There is no known exploitation of CVE-2025-3897 in the wild and no public exploit code.
Sources
Also known as GHSA-rjp8-g2cv-jvmv.