CVE-2026-28066
Received Received - Intake
Local File Inclusion in ThemeREX Legrand <= 2.17 Allows Code Execution

Publication date: 2026-03-05

Last updated on: 2026-03-05

Assigner: Patchstack

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-05
Last Modified
2026-03-05
Generated
2026-05-07
AI Q&A
2026-03-05
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
themerex legrand to 2.17 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-98 The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-28066 is a Local File Inclusion (LFI) vulnerability found in the WordPress Legrand Theme versions up to and including 2.17. This vulnerability allows unauthenticated attackers to include and display local files from the target website by exploiting improper control of filenames in PHP include/require statements.

Because of this flaw, attackers can access sensitive files on the server, such as those containing database credentials, which could lead to further compromise of the website.

The vulnerability is categorized under the OWASP Top 10 category A3: Injection and is considered high priority with a CVSS severity score of 8.1.


How can this vulnerability impact me? :

[{'type': 'paragraph', 'content': 'Exploitation of this vulnerability can allow attackers to read sensitive local files on your website server without any authentication.'}, {'type': 'paragraph', 'content': "This could expose critical information such as database credentials, which might enable attackers to take over the entire database depending on your website's configuration."}, {'type': 'paragraph', 'content': 'Since no privileges are required to exploit this flaw, it is highly dangerous and likely to be targeted by attackers, potentially leading to data breaches and loss of control over your website.'}] [1]


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

The vulnerability allows unauthenticated attackers to include and display local files from the target website, which can be detected by monitoring for suspicious HTTP requests attempting to exploit Local File Inclusion (LFI) patterns.

While no specific commands are provided, detection can involve inspecting web server logs for requests containing suspicious parameters that attempt to include local files, such as those with directory traversal sequences (e.g., ../) or attempts to access sensitive files.

Additionally, implementing the Patchstack mitigation rule can help block exploitation attempts and serve as a detection mechanism by alerting on blocked requests.


What immediate steps should I take to mitigate this vulnerability?

Since no official patch is currently available for this vulnerability, the immediate recommended step is to implement the mitigation rule released by Patchstack, which blocks exploitation attempts.

Applying this mitigation promptly will provide immediate protection until an official patch can be developed, tested, and safely applied.

Users should also monitor their systems for suspicious activity and consider restricting access to sensitive files and directories as a precaution.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart