Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-58940: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in axiomthemes Basil

0
High
VulnerabilityCVE-2025-58940cvecve-2025-58940
Published: Thu Dec 18 2025 (12/18/2025, 07:21:57 UTC)
Source: CVE Database V5
Vendor/Project: axiomthemes
Product: Basil

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.

AI-Powered Analysis

AILast updated: 12/18/2025, 09:00:41 UTC

Technical Analysis

CVE-2025-58940 is a Remote File Inclusion vulnerability found in the Basil theme developed by axiomthemes, specifically affecting versions up to 1.3.12. The vulnerability stems from improper validation and control of filenames used in PHP include or require statements, which are critical for dynamically loading code or content. An attacker can exploit this flaw by manipulating the filename parameter to include malicious remote or local files, resulting in arbitrary code execution on the server. This type of vulnerability is particularly dangerous because it can lead to full system compromise, data leakage, or defacement of websites. The vulnerability is categorized as a PHP Local File Inclusion (LFI) but can be extended to Remote File Inclusion (RFI) depending on server configuration. No CVSS score has been assigned yet, and no public exploits are known, but the vulnerability is published and should be treated as critical. The affected product, Basil, is a PHP theme likely used in WordPress or similar CMS environments, which are common in many European organizations. The lack of a patch link indicates that a fix may not yet be available, increasing the urgency for mitigation. Attackers exploiting this vulnerability do not require authentication, and exploitation does not necessarily require user interaction, increasing the risk profile.

Potential Impact

For European organizations, exploitation of CVE-2025-58940 could lead to severe consequences including unauthorized remote code execution, data theft, website defacement, and potential pivoting within internal networks. Confidentiality is at risk as attackers may access sensitive files or credentials stored on the server. Integrity is compromised through the potential modification of website content or backend code. Availability may be impacted if attackers deploy ransomware or disrupt services. Organizations relying on the Basil theme for public-facing websites or internal portals could face reputational damage and regulatory penalties under GDPR if personal data is exposed. The threat is particularly relevant for sectors with high web presence such as e-commerce, government, and media in Europe. The absence of known exploits currently provides a window for proactive defense, but the ease of exploitation and lack of authentication requirements make this a high-risk vulnerability.

Mitigation Recommendations

1. Immediately audit all web servers and applications using the Basil theme version 1.3.12 or earlier and identify vulnerable instances. 2. Apply patches or updates from axiomthemes as soon as they become available; if no official patch exists, consider disabling the vulnerable include/require functionality or replacing the theme. 3. Implement strict input validation and sanitization on all parameters used in include/require statements to prevent injection of malicious file paths. 4. Deploy a Web Application Firewall (WAF) with rules to detect and block attempts to exploit file inclusion vulnerabilities. 5. Restrict PHP configuration settings such as 'allow_url_include' to 'Off' to prevent remote file inclusion. 6. Conduct regular code reviews and penetration testing focused on file inclusion and injection vulnerabilities. 7. Monitor web server logs for suspicious requests attempting to manipulate include parameters. 8. Educate developers and administrators about secure coding practices related to dynamic file inclusion. 9. Consider isolating vulnerable applications in segmented network zones to limit lateral movement if compromised.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
Patchstack
Date Reserved
2025-09-06T04:44:48.015Z
Cvss Version
null
State
PUBLISHED

Threat ID: 6943b0454eb3efac366ff8e1

Added to database: 12/18/2025, 7:41:57 AM

Last enriched: 12/18/2025, 9:00:41 AM

Last updated: 12/19/2025, 8:20:41 AM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats