CVE-2025-58940 WordPress Basil theme <= 1.3.12 - Local File Inclusion vulnerability

High 8.1 Published Updated

Attackers can exploit a local file inclusion flaw in the Basil WordPress theme to read sensitive files or execute arbitrary code.

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-58940?

CVE-2025-58940 is a high-severity path traversal vulnerability in axiomthemes Basil, published on 18 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Basil basil allows PHP Local File Inclusion.This issue affects Basil: from n/a through <= 1.3.12.

Weakness: CWE-98

Which versions are affected by CVE-2025-58940?

It affects 1 product.

Products include Axiomthemes Basil.

How do I fix CVE-2025-58940?

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

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

Sources

Also known as GHSA-6qx2-7pcq-f8mr.

Is CVE-2025-58940 in your software?

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

Check your SBOMs for free