CVE-2025-64231
📋 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
- WordPress Contact Form 7 PDF, Google Sheet & Database plugin
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- 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.
🎯 Exploit Status
Simple file upload exploitation with publicly available proof-of-concept code.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 3.0.1 or later
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
allTemporarily disable the plugin until patched
wp plugin deactivate rtwwcfp-wordpress-contact-form-7-pdf
Restrict file uploads via .htaccess
linuxBlock 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")