Skip to main content

CVE-2025-39406: CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in mojoomla WPAMS

Critical
VulnerabilityCVE-2025-39406cvecve-2025-39406cwe-98
Published: Mon May 19 2025 (05/19/2025, 19:07:25 UTC)
Source: CVE
Vendor/Project: mojoomla
Product: WPAMS

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in mojoomla WPAMS allows PHP Local File Inclusion.This issue affects WPAMS: from n/a through 44.0.

AI-Powered Analysis

AILast updated: 07/11/2025, 16:17:18 UTC

Technical Analysis

CVE-2025-39406 is a critical vulnerability classified under CWE-98, which pertains to improper control of filenames used in include or require statements within PHP programs. This specific vulnerability affects the mojoomla WPAMS product, allowing an attacker to perform PHP Local File Inclusion (LFI). The vulnerability arises because the application does not properly validate or sanitize user-supplied input used in file inclusion functions, enabling an attacker to manipulate the filename parameter to include arbitrary files from the local filesystem. This can lead to the execution of malicious code, disclosure of sensitive information, or complete compromise of the affected system. The vulnerability has a CVSS 3.1 base score of 9.8, indicating a critical severity level. It is remotely exploitable over the network without requiring authentication or user interaction, and it impacts confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the high severity and ease of exploitation make this a significant threat. The affected versions include all versions of WPAMS up to and including 44.0, with no specific fixed version noted yet. The vulnerability was reserved in April 2025 and published in May 2025, indicating it is a recent discovery. The absence of patch links suggests that a fix may not yet be publicly available, increasing the urgency for mitigation.

Potential Impact

For European organizations using mojoomla WPAMS, this vulnerability poses a severe risk. Exploitation could lead to unauthorized access to sensitive data, including configuration files, credentials, or personal data protected under GDPR. Attackers could execute arbitrary PHP code, potentially leading to full system compromise, data breaches, ransomware deployment, or lateral movement within the network. The critical nature of the vulnerability and its remote exploitability without authentication make it particularly dangerous for web-facing applications. Organizations in sectors such as finance, healthcare, government, and critical infrastructure are at heightened risk due to the sensitive nature of their data and regulatory requirements. Additionally, the compromise of websites or services using WPAMS could damage reputation and result in legal and financial penalties under European data protection laws.

Mitigation Recommendations

Given the lack of an official patch at this time, European organizations should implement immediate compensating controls. These include: 1) Restricting access to the affected WPAMS application via network-level controls such as web application firewalls (WAFs) with rules to detect and block suspicious file inclusion attempts; 2) Employing strict input validation and sanitization on all user inputs, particularly those that influence file paths; 3) Disabling PHP functions that facilitate file inclusion (e.g., include, require) if not essential, or configuring PHP open_basedir restrictions to limit accessible directories; 4) Monitoring logs for unusual file access patterns or errors indicative of exploitation attempts; 5) Isolating the affected application in a segmented network zone to limit potential lateral movement; 6) Preparing for rapid patch deployment once an official fix is released by mojoomla; 7) Conducting thorough security assessments and penetration testing focused on file inclusion vulnerabilities; 8) Educating development and operations teams about secure coding practices to prevent similar vulnerabilities.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Patchstack
Date Reserved
2025-04-16T06:22:51.799Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682cd0f81484d88663aeb42a

Added to database: 5/20/2025, 6:59:04 PM

Last enriched: 7/11/2025, 4:17:18 PM

Last updated: 7/30/2025, 4:08:03 PM

Views: 10

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

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