CVE-2025-52716

7.5 HIGH

📋 TL;DR

This vulnerability allows attackers to include local files on the server through improper filename control in PHP include/require statements. It affects WordPress sites using the WP REST Cache plugin, potentially leading to sensitive file disclosure or code execution. All users of WP REST Cache versions up to 2025.1.0 are affected.

💻 Affected Systems

Products:
  • WP REST Cache WordPress plugin
Versions: All versions up to and including 2025.1.0
Operating Systems: Any OS running PHP and WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with WP REST Cache plugin enabled. PHP configuration may affect exploitability.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise through local file inclusion leading to remote code execution, sensitive data exposure, and complete site takeover.

🟠

Likely Case

Sensitive file disclosure (configuration files, database credentials), limited code execution, and potential privilege escalation.

🟢

If Mitigated

No impact if proper file permissions, web server restrictions, and security controls prevent file inclusion.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Local File Inclusion vulnerabilities typically have low complexity exploitation. No public exploit code identified yet.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2025.1.1 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/wp-rest-cache/vulnerability/wordpress-wp-rest-cache-2025-1-0-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find WP REST Cache and click 'Update Now'. 4. Verify update to version 2025.1.1 or later.

🔧 Temporary Workarounds

Disable WP REST Cache Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate wp-rest-cache

Restrict PHP File Inclusion

linux

Configure PHP to disable allow_url_include and restrict open_basedir

allow_url_include = Off
open_basedir = /var/www/html

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict file permissions and implement strict access controls on sensitive directories

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > WP REST Cache version. If version is 2025.1.0 or earlier, system is vulnerable.

Check Version:

wp plugin get wp-rest-cache --field=version

Verify Fix Applied:

Verify WP REST Cache plugin version is 2025.1.1 or later in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file access patterns in web server logs
  • PHP include/require errors with suspicious file paths
  • Multiple requests to wp-rest-cache endpoints with file parameters

Network Indicators:

  • HTTP requests containing file inclusion patterns (../, /etc/passwd, etc.)
  • Unusual traffic to wp-rest-cache API endpoints

SIEM Query:

source="web_server_logs" AND (uri="*wp-rest-cache*" AND (uri="*..*" OR uri="*/etc/*" OR uri="*file=*"))

🔗 References

📤 Share & Export