CVE-2025-8141

8.8 HIGH

📋 TL;DR

The Redirection for Contact Form 7 WordPress plugin has an arbitrary file deletion vulnerability that allows unauthenticated attackers to delete any file on the server. This affects all versions up to and including 3.2.4, potentially leading to remote code execution by deleting critical files like wp-config.php.

💻 Affected Systems

Products:
  • Redirection for Contact Form 7 WordPress plugin
Versions: All versions up to and including 3.2.4
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin activated.

⚠️ 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

Complete site compromise via remote code execution by deleting wp-config.php or other critical files, leading to data theft, defacement, or malware installation.

🟠

Likely Case

Site disruption or data loss from deletion of important files, potentially causing downtime or content loss.

🟢

If Mitigated

Limited impact if proper file permissions and web application firewalls block exploitation attempts.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation is straightforward with publicly available proof-of-concept code.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.2.5 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3200000/wpcf7-redirect/trunk/classes/class-wpcf7r-save-files.php

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Redirection for Contact Form 7'. 4. Click 'Update Now' if available, or manually update to version 3.2.5+. 5. Verify the plugin is active and functioning.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily deactivate the Redirection for Contact Form 7 plugin until patched.

wp plugin deactivate wpcf7-redirect

Web Application Firewall rule

all

Block requests to the vulnerable delete_associated_files function.

Add WAF rule to block POST requests containing 'delete_associated_files' parameter

🧯 If You Can't Patch

  • Implement strict file permissions (755 for directories, 644 for files) to limit damage
  • Deploy a web application firewall with rules blocking file deletion attempts

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Redirection for Contact Form 7 version number

Check Version:

wp plugin get wpcf7-redirect --field=version

Verify Fix Applied:

Confirm plugin version is 3.2.5 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • POST requests to wp-admin/admin-ajax.php with 'delete_associated_files' action
  • File deletion events in web server logs for unexpected paths

Network Indicators:

  • HTTP POST requests with file path parameters to WordPress admin endpoints

SIEM Query:

source="web_server_logs" AND (action="delete_associated_files" OR path="*wp-admin/admin-ajax.php*")

🔗 References

📤 Share & Export