EUCookieLaw <= 2.7.2 - Unauthenticated Arbitrary File Read

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2025-3897
CVSS Medium (5.9)
Publicly Published May 8, 2025
Last Updated May 9, 2025
Researcher Nicolai Hellesnes (nico_)
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.

References

1 affected software package

Software Type Plugin
Software Slug eucookielaw (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.7.2
Patched Version
  • 2.7.3
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.