CVE-2025-8009 Path traversal in Security Ninja – WordPress Security Plugin & Firewall

Medium 4.9 Published Updated

Authenticated administrators can read arbitrary files on the server via a path traversal vulnerability in the Security Ninja WordPress plugin.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-8009?

CVE-2025-8009 is a medium-severity path traversal vulnerability in cleverplugins Security Ninja – WordPress Security Plugin & Firewall, published on 24 Jul 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

The Security Ninja – WordPress Security Plugin & Firewall plugin for WordPress is vulnerable to Arbitrary File Read in all versions up to, and including, 5.242 via the 'get_file_source' function. This makes it possible for authenticated attackers, with Administrator-level access and above, to extract sensitive data, including the contents of any file on the server.

Weakness: CWE-36

Which versions are affected by CVE-2025-8009?

How do I fix CVE-2025-8009?

No fix has been published for CVE-2025-8009 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-8009 being exploited?

There is no known exploitation of CVE-2025-8009 in the wild and no public exploit code.

Sources

Also known as GHSA-8wmc-rr78-8pf9.

Is CVE-2025-8009 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free