CVE-2025-3897
WordPress vulnerability analysis and mitigation

Overview

The EUCookieLaw plugin for WordPress contains an Arbitrary File Read vulnerability (CVE-2025-3897) discovered and disclosed on May 9, 2025. This vulnerability affects all versions up to and including 2.7.2, impacting WordPress installations with the EUCookieLaw plugin installed alongside a caching plugin such as W3 Total Cache (NVD, Wiz).

Technical details

The vulnerability exists in the filegetcontents function implementation, allowing unauthenticated attackers to read arbitrary files on the server. The issue has been assigned a CVSS v3.1 base score of 5.9 (Medium) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (NVD).

Impact

If exploited, this vulnerability allows unauthenticated attackers to read the contents of arbitrary files on the server, potentially exposing sensitive information. The vulnerability is particularly concerning as it can be exploited without authentication, though it requires the presence of a caching plugin (NVD).

Mitigation and workarounds

A security update has been released in version 2.7.3 that addresses the unchecked file access vulnerability. The fix includes proper sanitization of file access operations. Users are advised to update to the latest version immediately (WordPress Plugin).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management