CVE-2026-28054
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-28054 is a PHP Local File Inclusion (LFI) vulnerability in the ThemeREX Legal Stone WordPress theme, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects all versions of the Legal Stone theme through and including version 1.2.11. The vulnerability was published on March 5, 2026, with Patchstack credited as the assigner. It carries a CVSS v3.1 base score of 8.1 (High) (Feedly, Patchstack).

Technical details

The root cause is improper validation and sanitization of user-supplied filenames passed to PHP include/require statements within the Legal Stone theme (CWE-98). An attacker can manipulate input parameters to cause the PHP interpreter to include arbitrary local files from the server's filesystem, potentially exposing sensitive configuration files (e.g., wp-config.php) or enabling code execution if writable files or PHP wrappers are leveraged. Exploitation requires high attack complexity but no authentication or user interaction, and the attack vector is network-based (Feedly).

Impact

Successful exploitation can result in unauthorized reading of sensitive server files (high confidentiality impact), modification of file contents (high integrity impact), and potential service disruption or remote code execution (high availability impact). An unauthenticated remote attacker could access WordPress configuration files containing database credentials, enabling further lateral movement or full site compromise. The vulnerability scope is unchanged, meaning impact is confined to the affected WordPress installation (Feedly).

Exploitability

As of the last available data, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The EPSS score is approximately 0.053%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. High attack complexity is a mitigating factor, though the lack of authentication requirements increases risk if complexity conditions are met (Feedly).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the ThemeREX Legal Stone theme (version ≤ 1.2.11) via passive scanning tools (e.g., WPScan, Shodan) or by inspecting theme metadata in publicly accessible style.css files.
  2. Identify vulnerable parameter: Analyze the theme's PHP source code or observed HTTP requests to locate input parameters that are passed unsanitized to PHP include/require statements.
  3. Craft malicious request: Construct an HTTP request (GET or POST) targeting the vulnerable parameter with a path traversal payload (e.g., ../../../../wp-config.php) to attempt local file inclusion.
  4. Retrieve sensitive files: If successful, the server response will contain the contents of the targeted file (e.g., WordPress database credentials from wp-config.php).
  5. Escalate if possible: Leverage retrieved credentials or use PHP stream wrappers (e.g., php://filter) to further enumerate or achieve code execution if log poisoning or other writable file vectors are available (Feedly).

Indicators of compromise

  • Network: Unusual HTTP requests to WordPress theme files containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) in query parameters; requests targeting wp-config.php or /etc/passwd via theme endpoints.
  • Logs: Web server access logs showing 200 responses to requests with file path parameters pointing to sensitive system files; repeated requests from a single IP to theme-related PHP files with varying file path inputs.
  • File System: Unexpected access timestamps on sensitive files such as wp-config.php, /etc/passwd, or PHP log files; presence of web shells in the theme directory if code execution was achieved.
  • Process: Unusual PHP child processes spawned by the web server user; unexpected outbound network connections from the web server process (Feedly).

Mitigation and workarounds

Users should update the ThemeREX Legal Stone theme to a version newer than 1.2.11 as soon as a patched release becomes available. In the interim, administrators should implement Web Application Firewall (WAF) rules to detect and block path traversal and file inclusion attempts targeting theme files. Additional hardening steps include restricting file permissions on the WordPress installation, disabling PHP allow_url_include in php.ini, and monitoring server access logs for suspicious file inclusion patterns (Feedly, Patchstack).

Community reactions

The vulnerability was noted in the Wordfence Intelligence Weekly WordPress Vulnerability Report covering the period of February 23 to March 1, 2026, indicating routine tracking by the WordPress security community. No significant independent researcher commentary or broader media coverage has been identified beyond standard vulnerability database listings (Wordfence).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-78570CRITICAL9.8
  • totaldonations
NoNoAug 25, 2026
CVE-2026-78568CRITICAL9.8
  • totaldonations
NoNoAug 25, 2026
CVE-2026-78572HIGH8.1
  • kalles-addons
NoNoAug 25, 2026
CVE-2026-78576HIGH7.5
  • readabler
NoYesAug 25, 2026
CVE-2026-76128MEDIUM6.4
  • ecommerce-product-catalog
NoYesAug 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management