CVE-2026-28066: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in ThemeREX Legrand
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeREX Legrand legrand allows PHP Local File Inclusion.This issue affects Legrand: from n/a through <= 2.17.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-28066 affects the ThemeREX Legrand WordPress theme, specifically versions up to 2.17. It arises from improper control of filenames used in PHP include or require statements, which leads to a Local File Inclusion (LFI) vulnerability. LFI vulnerabilities occur when an application allows user input to influence file paths without adequate validation or sanitization, enabling attackers to include files from the local filesystem. In this case, the Legrand theme does not properly restrict or sanitize the filename parameter used in PHP include/require functions, allowing an attacker to specify arbitrary files to be included and executed by the PHP interpreter. This can lead to disclosure of sensitive files such as configuration files, password files, or application source code. In some scenarios, it may also enable remote code execution if an attacker can upload malicious files or leverage other vulnerabilities. The vulnerability does not require authentication, making it accessible to unauthenticated remote attackers who can send crafted HTTP requests to the affected site. The affected product is a popular WordPress theme used for building websites, which increases the potential attack surface. No official patches or fixes are currently linked, and no known exploits have been reported in the wild as of the publication date. However, the vulnerability is publicly disclosed and documented in the CVE database, which may prompt attackers to develop exploits. The lack of a CVSS score necessitates an independent severity assessment based on impact and exploitability factors.
Potential Impact
The primary impact of CVE-2026-28066 is the potential unauthorized disclosure of sensitive information stored on the web server, including configuration files, credentials, and source code. This can facilitate further attacks such as privilege escalation, data theft, or website defacement. In some cases, if combined with other vulnerabilities or misconfigurations, it may lead to remote code execution, allowing attackers to execute arbitrary commands on the server. This compromises the confidentiality, integrity, and availability of the affected systems. Organizations using the Legrand theme for their websites risk data breaches, loss of customer trust, and potential regulatory penalties. The ease of exploitation without authentication increases the threat level, especially for public-facing websites. The scope of affected systems includes any WordPress site running the vulnerable versions of the Legrand theme, which could be widespread given the popularity of WordPress and commercial themes. The absence of known exploits currently limits immediate impact but also means organizations should act proactively before exploitation occurs.
Mitigation Recommendations
1. Immediate mitigation involves updating the Legrand theme to a patched version once available from the vendor or ThemeREX. Monitor official channels for security updates. 2. Until a patch is released, implement web application firewall (WAF) rules to detect and block suspicious requests attempting to manipulate include parameters or access local files. 3. Restrict PHP include paths using configuration directives such as open_basedir to limit file inclusion to trusted directories. 4. Disable or restrict the use of dynamic file inclusion in the theme code if possible by modifying the theme source to validate and sanitize input parameters rigorously. 5. Conduct regular security audits and vulnerability scans on WordPress sites to detect similar issues. 6. Employ the principle of least privilege for web server file permissions to minimize the impact of file inclusion attacks. 7. Monitor web server logs for unusual access patterns indicative of exploitation attempts. 8. Educate site administrators on the risks of using outdated themes and the importance of timely updates. These measures collectively reduce the attack surface and help prevent exploitation until an official patch is applied.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Netherlands, Italy, Spain, Brazil
CVE-2026-28066: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in ThemeREX Legrand
Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeREX Legrand legrand allows PHP Local File Inclusion.This issue affects Legrand: from n/a through <= 2.17.
AI-Powered Analysis
Technical Analysis
The vulnerability identified as CVE-2026-28066 affects the ThemeREX Legrand WordPress theme, specifically versions up to 2.17. It arises from improper control of filenames used in PHP include or require statements, which leads to a Local File Inclusion (LFI) vulnerability. LFI vulnerabilities occur when an application allows user input to influence file paths without adequate validation or sanitization, enabling attackers to include files from the local filesystem. In this case, the Legrand theme does not properly restrict or sanitize the filename parameter used in PHP include/require functions, allowing an attacker to specify arbitrary files to be included and executed by the PHP interpreter. This can lead to disclosure of sensitive files such as configuration files, password files, or application source code. In some scenarios, it may also enable remote code execution if an attacker can upload malicious files or leverage other vulnerabilities. The vulnerability does not require authentication, making it accessible to unauthenticated remote attackers who can send crafted HTTP requests to the affected site. The affected product is a popular WordPress theme used for building websites, which increases the potential attack surface. No official patches or fixes are currently linked, and no known exploits have been reported in the wild as of the publication date. However, the vulnerability is publicly disclosed and documented in the CVE database, which may prompt attackers to develop exploits. The lack of a CVSS score necessitates an independent severity assessment based on impact and exploitability factors.
Potential Impact
The primary impact of CVE-2026-28066 is the potential unauthorized disclosure of sensitive information stored on the web server, including configuration files, credentials, and source code. This can facilitate further attacks such as privilege escalation, data theft, or website defacement. In some cases, if combined with other vulnerabilities or misconfigurations, it may lead to remote code execution, allowing attackers to execute arbitrary commands on the server. This compromises the confidentiality, integrity, and availability of the affected systems. Organizations using the Legrand theme for their websites risk data breaches, loss of customer trust, and potential regulatory penalties. The ease of exploitation without authentication increases the threat level, especially for public-facing websites. The scope of affected systems includes any WordPress site running the vulnerable versions of the Legrand theme, which could be widespread given the popularity of WordPress and commercial themes. The absence of known exploits currently limits immediate impact but also means organizations should act proactively before exploitation occurs.
Mitigation Recommendations
1. Immediate mitigation involves updating the Legrand theme to a patched version once available from the vendor or ThemeREX. Monitor official channels for security updates. 2. Until a patch is released, implement web application firewall (WAF) rules to detect and block suspicious requests attempting to manipulate include parameters or access local files. 3. Restrict PHP include paths using configuration directives such as open_basedir to limit file inclusion to trusted directories. 4. Disable or restrict the use of dynamic file inclusion in the theme code if possible by modifying the theme source to validate and sanitize input parameters rigorously. 5. Conduct regular security audits and vulnerability scans on WordPress sites to detect similar issues. 6. Employ the principle of least privilege for web server file permissions to minimize the impact of file inclusion attacks. 7. Monitor web server logs for unusual access patterns indicative of exploitation attempts. 8. Educate site administrators on the risks of using outdated themes and the importance of timely updates. These measures collectively reduce the attack surface and help prevent exploitation until an official patch is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Patchstack
- Date Reserved
- 2026-02-25T12:13:39.590Z
- Cvss Version
- null
- State
- PUBLISHED
Threat ID: 69a92061d1a09e29cbe6ce4b
Added to database: 3/5/2026, 6:19:13 AM
Last enriched: 3/5/2026, 7:06:21 AM
Last updated: 3/5/2026, 3:02:26 PM
Views: 4
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.