CVE-2026-28066

WordPress Legrand theme <= 2.17 - Local File Inclusion vulnerability

Published Mar 5, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Themerex
Themerex legrand
Wordpress
Wordpress wordpress
Vendors & Products Themerex
Themerex legrand
Wordpress
Wordpress wordpress
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'}

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
Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Sources

Status
PUBLISHED
Assigner
Patchstack
Published
Updated
Apr 28, 2026, 5:39 PM
Reserved
Feb 25, 2026, 12:13 PM
Status
Deferred
Published
Mar 5, 2026, 6:16 AM
Modified
Jun 17, 2026, 10:28 AM