CVE-2026-28125: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in AncoraThemes Midi
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Midi midi allows PHP Local File Inclusion.This issue affects Midi: from n/a through <= 1.14.
AI Analysis
Technical Summary
CVE-2026-28125 is a Local File Inclusion (LFI) vulnerability found in the AncoraThemes Midi WordPress theme, affecting versions up to 1.14. The vulnerability arises from improper control over the filename used in PHP include or require statements, allowing an attacker to manipulate the input to include arbitrary files from the server. This can lead to disclosure of sensitive files such as configuration files, password files, or source code, and in some cases, may enable remote code execution if combined with other vulnerabilities or misconfigurations. The issue is rooted in insufficient validation and sanitization of user-supplied input that controls the file path. Since the vulnerability does not require authentication or user interaction, it can be exploited remotely by an unauthenticated attacker. No public exploit code is currently known, but the vulnerability is publicly disclosed and assigned CVE-2026-28125. The lack of an official patch at the time of disclosure increases the risk for organizations using this theme. AncoraThemes Midi is a popular WordPress theme, and WordPress powers a significant portion of websites globally, making this a relevant threat to many web servers. The vulnerability's exploitation could lead to data leakage, website defacement, or full server compromise depending on the environment and additional security controls in place.
Potential Impact
The impact of CVE-2026-28125 can be severe for organizations running vulnerable versions of the AncoraThemes Midi theme. Exploitation can lead to unauthorized disclosure of sensitive information such as database credentials, configuration files, or user data, compromising confidentiality. In some scenarios, attackers may achieve remote code execution, leading to full system compromise, data tampering, or persistent backdoors, affecting integrity and availability. Websites compromised through this vulnerability may be defaced or used as a platform for further attacks such as phishing or malware distribution, damaging organizational reputation. Since WordPress is widely used for business, e-commerce, and content management, the vulnerability poses a risk to a broad range of sectors including finance, healthcare, education, and government. The ease of exploitation without authentication increases the likelihood of automated scanning and exploitation attempts, potentially leading to widespread impact if not mitigated promptly.
Mitigation Recommendations
To mitigate CVE-2026-28125, organizations should immediately update the AncoraThemes Midi theme to a patched version once available. In the absence of an official patch, administrators should implement strict input validation and sanitization on all parameters controlling file inclusion paths, ensuring only intended files can be included. Employing a whitelist approach for allowable file paths or names is recommended. Web application firewalls (WAFs) should be configured to detect and block suspicious requests attempting directory traversal or unusual file inclusion patterns. Restrict PHP configuration settings such as disabling allow_url_include and setting open_basedir to limit accessible directories. Regularly audit and monitor web server and application logs for anomalous file inclusion attempts. Additionally, consider isolating the web server environment and applying the principle of least privilege to minimize potential damage from exploitation. Backup website data and configurations regularly to enable quick recovery if compromise occurs.
Affected Countries
United States, Germany, India, Brazil, United Kingdom, Canada, Australia, France, Italy, Spain
CVE-2026-28125: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in AncoraThemes Midi
Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Midi midi allows PHP Local File Inclusion.This issue affects Midi: from n/a through <= 1.14.
AI-Powered Analysis
Technical Analysis
CVE-2026-28125 is a Local File Inclusion (LFI) vulnerability found in the AncoraThemes Midi WordPress theme, affecting versions up to 1.14. The vulnerability arises from improper control over the filename used in PHP include or require statements, allowing an attacker to manipulate the input to include arbitrary files from the server. This can lead to disclosure of sensitive files such as configuration files, password files, or source code, and in some cases, may enable remote code execution if combined with other vulnerabilities or misconfigurations. The issue is rooted in insufficient validation and sanitization of user-supplied input that controls the file path. Since the vulnerability does not require authentication or user interaction, it can be exploited remotely by an unauthenticated attacker. No public exploit code is currently known, but the vulnerability is publicly disclosed and assigned CVE-2026-28125. The lack of an official patch at the time of disclosure increases the risk for organizations using this theme. AncoraThemes Midi is a popular WordPress theme, and WordPress powers a significant portion of websites globally, making this a relevant threat to many web servers. The vulnerability's exploitation could lead to data leakage, website defacement, or full server compromise depending on the environment and additional security controls in place.
Potential Impact
The impact of CVE-2026-28125 can be severe for organizations running vulnerable versions of the AncoraThemes Midi theme. Exploitation can lead to unauthorized disclosure of sensitive information such as database credentials, configuration files, or user data, compromising confidentiality. In some scenarios, attackers may achieve remote code execution, leading to full system compromise, data tampering, or persistent backdoors, affecting integrity and availability. Websites compromised through this vulnerability may be defaced or used as a platform for further attacks such as phishing or malware distribution, damaging organizational reputation. Since WordPress is widely used for business, e-commerce, and content management, the vulnerability poses a risk to a broad range of sectors including finance, healthcare, education, and government. The ease of exploitation without authentication increases the likelihood of automated scanning and exploitation attempts, potentially leading to widespread impact if not mitigated promptly.
Mitigation Recommendations
To mitigate CVE-2026-28125, organizations should immediately update the AncoraThemes Midi theme to a patched version once available. In the absence of an official patch, administrators should implement strict input validation and sanitization on all parameters controlling file inclusion paths, ensuring only intended files can be included. Employing a whitelist approach for allowable file paths or names is recommended. Web application firewalls (WAFs) should be configured to detect and block suspicious requests attempting directory traversal or unusual file inclusion patterns. Restrict PHP configuration settings such as disabling allow_url_include and setting open_basedir to limit accessible directories. Regularly audit and monitor web server and application logs for anomalous file inclusion attempts. Additionally, consider isolating the web server environment and applying the principle of least privilege to minimize potential damage from exploitation. Backup website data and configurations regularly to enable quick recovery if compromise occurs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Patchstack
- Date Reserved
- 2026-02-25T12:14:12.838Z
- Cvss Version
- null
- State
- PUBLISHED
Threat ID: 69a9206ad1a09e29cbe6cfba
Added to database: 3/5/2026, 6:19:22 AM
Last enriched: 3/5/2026, 6:34:53 AM
Last updated: 3/5/2026, 2:58:54 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-3598: CWE-327 Use of a Broken or Risky Cryptographic Algorithm in rustdesk-server-pro RustDesk Server Pro
HighCVE-2026-27750: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition in Gen Digital Inc. Avira Internet Security
HighCVE-2026-27749: CWE-502 Deserialization of Untrusted Data in Gen Digital Inc. Avira Internet Security
HighCVE-2026-27748: CWE-59 Improper Link Resolution Before File Access ('Link Following') in Gen Digital Inc. Avira Internet Security
HighCVE-2026-1720: CWE-862 Missing Authorization in wpxpo WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.