Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-28054: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in ThemeREX Legal Stone

0
Unknown
VulnerabilityCVE-2026-28054cvecve-2026-28054
Published: Thu Mar 05 2026 (03/05/2026, 05:54:17 UTC)
Source: CVE Database V5
Vendor/Project: ThemeREX
Product: Legal Stone

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeREX Legal Stone legal-stone allows PHP Local File Inclusion.This issue affects Legal Stone: from n/a through <= 1.2.11.

AI-Powered Analysis

AILast updated: 03/05/2026, 07:09:54 UTC

Technical Analysis

CVE-2026-28054 identifies a Local File Inclusion (LFI) vulnerability in the ThemeREX Legal Stone WordPress theme, versions up to 1.2.11. The vulnerability arises from improper control over the filename parameter used in PHP include or require statements. This flaw allows an attacker to manipulate the input controlling which files are included by the PHP program, potentially causing the server to include unintended local files. Such inclusion can lead to disclosure of sensitive information (e.g., configuration files, password files) or even remote code execution if the attacker can influence file contents or chain with other vulnerabilities. The vulnerability is categorized as 'Improper Control of Filename for Include/Require Statement in PHP Program,' commonly known as PHP Remote File Inclusion or Local File Inclusion depending on context; here it is LFI. No CVSS score has been assigned yet, and no public exploits have been reported. The vulnerability affects the Legal Stone theme, which is used in WordPress environments, a widely deployed content management system. Exploitation typically requires no authentication and can be performed remotely by sending crafted requests that manipulate the file inclusion parameter. This vulnerability is critical because it undermines the confidentiality and integrity of the affected web server and can lead to full system compromise if chained with other exploits. The absence of patches or mitigations in the provided data suggests that users should urgently review their installations and apply any available updates or workarounds from the vendor or community.

Potential Impact

The impact of CVE-2026-28054 is significant for organizations using the ThemeREX Legal Stone WordPress theme. Successful exploitation can lead to unauthorized disclosure of sensitive files such as configuration files containing database credentials, private keys, or other critical information. Attackers may also execute arbitrary PHP code if they can control included files, potentially leading to full server compromise, data theft, defacement, or use of the server as a pivot point for further attacks. This can disrupt business operations, damage reputation, and result in regulatory or compliance violations. Since WordPress powers a large portion of websites globally, any site using the vulnerable theme is at risk. The vulnerability requires no authentication and can be exploited remotely, increasing the attack surface. Organizations with public-facing WordPress sites, especially those in sectors handling sensitive data (legal, financial, healthcare), face elevated risks. The lack of known exploits currently provides a window for remediation, but the vulnerability's nature means it could be weaponized quickly once details become widespread.

Mitigation Recommendations

To mitigate CVE-2026-28054, organizations should take the following specific actions: 1) Immediately update the ThemeREX Legal Stone theme to the latest version once a patch is released by the vendor. 2) If no patch is available, temporarily disable or replace the vulnerable theme to prevent exploitation. 3) Review and sanitize all inputs that influence file inclusion paths in the theme's PHP code to ensure only allowed files can be included, implementing a whitelist approach. 4) Employ web application firewalls (WAFs) with rules designed to detect and block attempts to exploit file inclusion vulnerabilities, such as suspicious URL parameters or path traversal sequences. 5) Restrict PHP file inclusion to specific directories using PHP configuration directives (e.g., open_basedir) to limit the scope of accessible files. 6) Monitor web server logs for unusual requests targeting file inclusion parameters or attempts to access sensitive files. 7) Conduct regular security audits and code reviews of custom themes and plugins to identify similar vulnerabilities. 8) Educate development teams on secure coding practices related to file inclusion and input validation. These measures collectively reduce the risk of exploitation and limit potential damage.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
Patchstack
Date Reserved
2026-02-25T12:13:34.839Z
Cvss Version
null
State
PUBLISHED

Threat ID: 69a9205fd1a09e29cbe6cda2

Added to database: 3/5/2026, 6:19:11 AM

Last enriched: 3/5/2026, 7:09:54 AM

Last updated: 3/5/2026, 3:03:32 PM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses