CVE-2025-58940

8.2

axiomthemes · Basil

The Basil theme for WordPress is vulnerable to local file inclusion due to improper control of filenames used in include or require statements.

Executive summary

A critical local file inclusion vulnerability in the axiomthemes Basil WordPress theme could allow an unauthenticated attacker to access or execute arbitrary files on the host server.

Vulnerability

This flaw is classified as CWE-98, involving improper control of filenames for include or require statements. An unauthenticated attacker can exploit this via the network to achieve high confidentiality, integrity, and availability impact.

Business impact

Successful exploitation of this vulnerability allows unauthorized access to sensitive server files, including configuration files or credentials. Given the CVSS score of 8.2, this represents a high risk to business operations, as it could lead to full system compromise, data breaches, and potential remote code execution depending on the server configuration.

Remediation

Immediate Action: Monitor for official security updates from axiomthemes and apply the patch as soon as it becomes available. If no update is provided, consider switching to a different theme or disabling the Basil theme entirely to prevent exploitation.

Proactive Monitoring: Review web server access logs for anomalous requests containing path traversal sequences or unexpected file inclusions. Monitor for unusual system-level activity that may indicate an attacker is attempting to read sensitive PHP or configuration files.

Compensating Controls: Deploy a Web Application Firewall (WAF) to filter and block malicious requests that attempt to pass directory traversal payloads or arbitrary file paths to the application.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

The severity of this vulnerability, combined with the potential for unauthorized file access, necessitates immediate attention. Security teams should prioritize checking for vendor updates and implement restrictive file system permissions to limit the scope of potential damage until a formal patch is applied.

More axiomthemes CVEs

Sources

Originally found and disclosed by Bonds | Patchstack Bug Bounty Program, per the CVE Program record.