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-31405: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in zankover Fami WooCommerce Compare

0
Unknown
VulnerabilityCVE-2025-31405cvecve-2025-31405
Published: Fri Apr 04 2025 (04/04/2025, 13:26:10 UTC)
Source: CVE Database V5
Vendor/Project: zankover
Product: Fami WooCommerce Compare

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in zankover Fami WooCommerce Compare fami-woocommerce-compare allows PHP Local File Inclusion.This issue affects Fami WooCommerce Compare: from n/a through <= 1.0.5.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/02/2026, 01:10:19 UTC

Technical Analysis

CVE-2025-31405 is a Local File Inclusion (LFI) vulnerability found in the zankover Fami WooCommerce Compare plugin, versions up to 1.0.5. The vulnerability stems from improper control over the filename parameter used in PHP include or require statements, allowing an attacker to manipulate the input and cause the application to include unintended local files. This can lead to disclosure of sensitive files such as configuration files, password stores, or source code, which may further facilitate privilege escalation or remote code execution if combined with other vulnerabilities. The flaw is due to insufficient input validation or sanitization on user-supplied data that controls file inclusion paths. Although no remote file inclusion (RFI) is confirmed, the LFI itself can be leveraged to read arbitrary files on the server. The vulnerability was reserved and published in early 2025, with no known public exploits or patches available at the time of reporting. The affected product is a WooCommerce plugin widely used in WordPress e-commerce sites, making the attack surface significant in online retail environments. The absence of a CVSS score requires an expert severity assessment based on the technical details and potential impact.

Potential Impact

The primary impact of CVE-2025-31405 is unauthorized disclosure of sensitive information through local file inclusion, which can compromise confidentiality. Attackers can access configuration files containing database credentials, API keys, or other secrets, potentially leading to further compromise of the web application or backend systems. In some cases, LFI vulnerabilities can be chained with other exploits to achieve remote code execution, threatening system integrity and availability. For organizations running WooCommerce stores with the affected plugin, this can result in data breaches, loss of customer trust, financial damage, and regulatory penalties. The vulnerability affects a widely used e-commerce plugin, increasing the risk of targeted attacks on online retailers globally. The ease of exploitation without authentication and lack of user interaction requirements amplify the threat. Although no exploits are currently known in the wild, the vulnerability presents a significant risk if weaponized by attackers.

Mitigation Recommendations

Organizations should monitor the vendor's announcements and apply security patches promptly once available. Until a patch is released, administrators should consider disabling or removing the Fami WooCommerce Compare plugin if it is not essential. Implement strict input validation and sanitization on any parameters controlling file inclusion to prevent manipulation. Configure PHP settings to disable allow_url_include and restrict file inclusion to safe directories using open_basedir. Employ web application firewalls (WAFs) with rules to detect and block suspicious file inclusion attempts. Conduct regular security audits and code reviews of custom plugins or themes to identify similar vulnerabilities. Maintain up-to-date backups and implement intrusion detection systems to quickly respond to potential exploitation attempts. Educate development teams on secure coding practices related to file handling in PHP applications.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Patchstack
Date Reserved
2025-03-28T10:59:52.729Z
Cvss Version
null
State
PUBLISHED

Threat ID: 69cd734ae6bfc5ba1def18ab

Added to database: 4/1/2026, 7:34:34 PM

Last enriched: 4/2/2026, 1:10:19 AM

Last updated: 4/5/2026, 5:25:34 PM

Views: 5

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 more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses