CVE-2025-48126
Executive Summary
CVE-2025-48126 is a critical PHP Local File Inclusion (LFI) vulnerability discovered in the G5Plus Essential Real Estate WordPress plugin, affecting versions up to and including 5.3.2. The vulnerability stems from improper control of filenames used in PHP include/require statements, allowing an unauthenticated attacker to include arbitrary local files from the server. This can lead to sensitive information disclosure, such as reading the wp-config.php file containing database credentials, or potentially enabling remote code execution if combined with file upload capabilities. The CVSS score of 8.1 (High) reflects the low attack complexity and network-based attack vector. As of this report, no official patch has been released, and no public proof-of-concept (PoC) code is available.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed through the official WordPress plugin repository and third-party marketplaces. Users who have installed the plugin via the WordPress admin dashboard or through automated deployment tools are at risk. The lack of a patch means that all installations of Essential Real Estate <= 5.3.2 are currently vulnerable. Organizations should treat this as a high-priority supply chain risk and consider removing the plugin until a fix is available.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The vulnerability can be exploited remotely over the network.
- Attack Complexity (AC): Low (L) – No special conditions or complex steps are required.
- Privileges Required (PR): None (N) – No authentication is needed.
- User Interaction (UI): None (N) – The victim does not need to perform any action.
- Scope (S): Unchanged (U) – The exploit does not affect other components.
- Confidentiality (C): High (H) – Sensitive files can be read.
- Integrity (I): None (N) – No file modification is possible.
- Availability (A): None (N) – No denial of service.
Threat Level: High. The combination of network exploitability, low complexity, and no required privileges makes this a serious threat for any WordPress site using the plugin.
Deep Dive & Mechanics
The vulnerability exists in the plugin's PHP code where user-supplied input is used to construct a file path for inclusion via include() or require(). The plugin likely uses a parameter (e.g., template, view, or file) to load specific template files. Without proper sanitization, an attacker can inject path traversal sequences (e.g., ../../) to include arbitrary files from the server.
Example vulnerable code pattern:
$file = $_GET['template'];
include(plugin_dir_path(__FILE__) . 'templates/' . $file . '.php');
An attacker could exploit this by sending a request like:
GET /wp-content/plugins/essential-real-estate/?template=../../../../wp-config
This would include the WordPress configuration file, revealing database credentials and salts.
Vulnerable vs. Patched Code
Vulnerable Code (<= 5.3.2):
// No input validation or sanitization
$template = $_REQUEST['template'];
include(ESSENTIAL_REAL_ESTATE_PATH . 'templates/' . $template . '.php');
Patched Code (Hypothetical):
// Whitelist allowed templates
$allowed_templates = array('list', 'grid', 'detail');
$template = $_REQUEST['template'];
if (in_array($template, $allowed_templates)) {
include(ESSENTIAL_REAL_ESTATE_PATH . 'templates/' . $template . '.php');
} else {
// Handle error
}
The patched version would validate the input against a whitelist of allowed values, preventing path traversal.
Exploitation & Lab Setup
Red Team (Offensive)
Lab Setup:
- Install WordPress on a local server (e.g., XAMPP, Docker).
- Install Essential Real Estate plugin version 5.3.2.
- Ensure the plugin is active.
Exploitation Steps:
- Identify the vulnerable parameter (likely
templateorview). - Craft a request to read sensitive files:
GET /wp-content/plugins/essential-real-estate/?template=../../../../wp-config - If successful, the response will contain the contents of
wp-config.php. - For further exploitation, attempt to include log files or other writable files to achieve code execution.
Note: No public exploit code is available at this time. The above is a theoretical exploitation path based on the vulnerability type.
Blue Team (Defensive)
Detection:
- Monitor web server logs for requests containing
../or%2e%2e%2fin plugin parameters. - Look for unusual file inclusion attempts targeting
wp-config.php,/etc/passwd, or other sensitive files. - Use the detection rules provided below.
Mitigation:
- Immediately disable or remove the Essential Real Estate plugin until a patch is released.
- Implement a Web Application Firewall (WAF) rule to block path traversal patterns.
- Restrict file permissions on the server to limit the impact of LFI.
Indicators of Compromise (IOCs)
- File Paths:
/wp-content/plugins/essential-real-estate/(plugin directory) - URL Patterns:
?template=../../or?view=../../ - Log Entries: HTTP requests with
../sequences in query strings targeting the plugin. - Sensitive Files Accessed:
wp-config.php,/etc/passwd,/etc/shadow
Detection Engineering
YARA Rule
rule CVE_2025_48126_LFI_Detection {
meta:
description = "Detects LFI attempts against Essential Real Estate plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-48126"
strings:
$path_traversal = /\.\.\// nocase
$plugin_param = "essential-real-estate" nocase
$sensitive_file = /wp-config|etc\/passwd|etc\/shadow/ nocase
condition:
$plugin_param and $path_traversal and $sensitive_file
}
Sigma Rule
title: CVE-2025-48126 - Essential Real Estate LFI Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects path traversal attempts targeting the Essential Real Estate plugin
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-uri-query|contains:
- 'template=..'
- 'view=..'
- 'file=..'
cs-uri-stem|contains: 'essential-real-estate'
condition: selection
falsepositives:
- Legitimate use of similar patterns (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-48126 - Essential Real Estate LFI Attempt"; flow:to_server,established; content:"essential-real-estate"; http_uri; content:"../"; http_uri; pcre:"/(wp-config|etc\/passwd|etc\/shadow)/Ui"; reference:cve,2025-48126; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable or uninstall the Essential Real Estate plugin until an official patch is released.
- WAF Rules: Deploy virtual patching via WAF to block requests containing
../in plugin parameters. - File Permissions: Ensure that sensitive files like
wp-config.phpare not readable by the web server user (e.g.,chmod 600). - Monitoring: Enable logging and alerting for LFI patterns in web server logs.
- Update: Monitor the plugin's official page for updates and apply the patch as soon as it becomes available.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.