CVE-2025-65713: Homeassistant Path Traversal Vulnerability
MODERATECVE-2025-65713 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Homeassistant libraries in the PyPI ecosystem. The issue involves home assistant core before is vulnerable to directory traversal. Remediation is available by upgrading affected packages to version 2025.8.0.
CVE-2025-65713 at a Glance
How to Fix CVE-2025-65713
To remediate this vulnerability, upgrade all affected Homeassistant dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install homeassistant>=2025.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show homeassistant
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-65713, inspect your installed packages using pip:
pip show homeassistant
Analyze the terminal output to locate any version of Homeassistant in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2025.8.0), your application is affected.
Note: The pip show homeassistant command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Homeassistant, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-65713 Affected Homeassistant Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
homeassistant
|
PyPI |
< 2025.8.0
|
2025.8.0
|
References
Frequently Asked Questions
What is CVE-2025-65713?
Which Homeassistant versions are affected?
What version fixes CVE-2025-65713?
Is homeassistant affected?
What CWE is associated with CVE-2025-65713?
How can I check PyPI dependencies for CVE-2025-65713?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pp3g-xmm4-5cw9",
"modified" : "2025-12-23T21:43:15Z",
"published" : "2025-12-23T18:30:27Z",
"aliases" : [ "CVE-2025-65713" ],
"summary" : "Home Assistant Core before is vulnerable to Directory Traversal",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "homeassistant"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2025.8.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65713"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/pull/150046"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/GenoWang/7359360285e0fe21a7a58d10ff71d032"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/home-assistant/core"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/blob/a4d12694dae82f10e2ca9c524e44a22ab7dacf66/homeassistant/components/downloader/services.py#L32"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/blob/a4d12694dae82f10e2ca9c524e44a22ab7dacf66/homeassistant/util/__init__.py#L20"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/blob/a4d12694dae82f10e2ca9c524e44a22ab7dacf66/homeassistant/util/__init__.py#L32-L38"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-23T19:47:00Z",
"nvd_published_at" : "2025-12-23T17:15:48Z"
}
}