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.
Published: 2026-03-05
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Potential remote code execution via Local File Inclusion
Action: Immediate Patch
AI Analysis

Impact

ThemeREX Legrand theme up to version 2.17 contains an improper control of filename for include/require statements in PHP. The flaw allows an attacker with sufficient access to supply path arguments that are passed directly to include/require, enabling local file inclusion. Local file inclusion can expose sensitive information or, if attacker-controlled files are included, allow arbitrary code execution. The weakness is identified as CWE-98, indicating failure to properly sanitize filename inputs.

Affected Systems

WordPress sites using the ThemeREX Legrand theme, versions n/a through 2.17. Site owners should check the active theme version and identify any deployment of the affected theme.

Risk and Exploitability

The CVSS base score of 8.1 reflects a high severity impact. The EPSS score of less than 1% indicates that exploitation is currently considered unlikely, and the vulnerability is not listed in the CISA KEV catalog, so no widespread exploitation has been confirmed. Nevertheless, the attack vector requires the ability to influence the filename parameter passed to an include/require operation, which could be achieved through crafted input such as HTTP GET/POST parameters or directory traversal attempts. The potential for remote code execution makes this vulnerability a critical security concern for administrators who have not applied a fix or mitigated the issue.

Generated by OpenCVE AI on April 15, 2026 at 23:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update ThemeREX Legrand to version 2.18 or later when it becomes available
  • Restrict include/require calls to a whitelist of trusted file paths, rejecting any input that attempts directory traversal or file names outside that list
  • Disable PHP remote file inclusion (set allow_url_include=Off and enable open_basedir restrictions) to prevent both local and remote file inclusions

Generated by OpenCVE AI on April 15, 2026 at 23:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Mar 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Themerex
Themerex legrand
Wordpress
Wordpress wordpress
Vendors & Products Themerex
Themerex legrand
Wordpress
Wordpress wordpress

Thu, 05 Mar 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 05 Mar 2026 06:15:00 +0000

Type Values Removed Values Added
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.
Title WordPress Legrand theme <= 2.17 - Local File Inclusion vulnerability
Weaknesses CWE-98
References

Subscriptions

Themerex Legrand
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Patchstack

Published:

Updated: 2026-04-01T14:15:36.719Z

Reserved: 2026-02-25T12:13:39.590Z

Link: CVE-2026-28066

cve-icon Vulnrichment

Updated: 2026-03-05T20:57:08.696Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-03-05T06:16:40.480

Modified: 2026-03-05T21:16:19.730

Link: CVE-2026-28066

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T23:15:17Z

Weaknesses