CVE-2025-64231

9.8 CRITICAL

📋 TL;DR

This vulnerability allows attackers to upload malicious files to WordPress sites using the Contact Form 7 PDF, Google Sheet & Database plugin. Attackers can upload dangerous file types like PHP scripts, potentially leading to remote code execution. All WordPress sites running vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • WordPress Contact Form 7 PDF, Google Sheet & Database plugin
Versions: All versions up to and including 3.0.0
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the vulnerable plugin to be installed and active on WordPress.

⚠️ 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 server compromise via remote code execution, allowing attackers to install backdoors, steal data, deface websites, or use the server for further attacks.

🟠

Likely Case

Website defacement, malware distribution, credential theft, or data exfiltration through uploaded malicious scripts.

🟢

If Mitigated

Limited impact if file uploads are restricted at web server level or if the vulnerable plugin is disabled.

🌐 Internet-Facing: HIGH - WordPress sites are typically internet-facing, and this vulnerability requires no authentication.
🏢 Internal Only: MEDIUM - Internal WordPress sites could still be compromised, potentially providing foothold for lateral movement.

🎯 Exploit Status

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

Simple file upload exploitation with publicly available proof-of-concept code.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.0.1 or later

Vendor Advisory: https://patchstack.com/database/Wordpress/Plugin/rtwwcfp-wordpress-contact-form-7-pdf/vulnerability/wordpress-wordpress-contact-form-7-pdf-google-sheet-database-plugin-3-0-0-arbitrary-file-upload-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Contact Form 7 PDF, Google Sheet & Database'. 4. Click 'Update Now' if available. 5. Alternatively, download version 3.0.1+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the plugin until patched

wp plugin deactivate rtwwcfp-wordpress-contact-form-7-pdf

Restrict file uploads via .htaccess

linux

Block execution of uploaded files in uploads directory

Add to .htaccess in wp-content/uploads: <FilesMatch "\.(php|php5|php7|phtml|phar)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

🧯 If You Can't Patch

  • Remove the plugin entirely if not essential
  • Implement web application firewall rules to block malicious file uploads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Contact Form 7 PDF, Google Sheet & Database' version ≤3.0.0

Check Version:

wp plugin get rtwwcfp-wordpress-contact-form-7-pdf --field=version

Verify Fix Applied:

Verify plugin version is 3.0.1 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to wp-content/uploads via contact form endpoints
  • POST requests to /wp-content/plugins/rtwwcfp-wordpress-contact-form-7-pdf/ with file uploads

Network Indicators:

  • File uploads with suspicious extensions (.php, .phtml, .phar) to WordPress endpoints

SIEM Query:

source="web_logs" AND (uri_path="/wp-content/plugins/rtwwcfp-wordpress-contact-form-7-pdf/" OR plugin_name="rtwwcfp-wordpress-contact-form-7-pdf") AND http_method="POST" AND file_extension IN ("php", "phtml", "phar")

🔗 References

📤 Share & Export