CVE-2026-64825: Homeassistant Path Traversal Vulnerability
CRITICALCVE-2026-64825 is a CRITICAL (CVSS 9.3) 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 vulnerable to path traversal via backup upload during onboarding. Remediation is available by upgrading affected packages to version 2026.6.0.
CVE-2026-64825 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L).
How to Fix CVE-2026-64825
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>=2026.6.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-2026-64825, 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 2026.6.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-2026-64825 Affected Homeassistant Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
homeassistant
|
PyPI |
< 2026.6.0
|
2026.6.0
|
References
Frequently Asked Questions
What is CVE-2026-64825?
Which Homeassistant versions are affected?
What version fixes CVE-2026-64825?
Is homeassistant affected?
What is the CVSS score of CVE-2026-64825?
What CWE is associated with CVE-2026-64825?
How can I check PyPI dependencies for CVE-2026-64825?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5hxg-r395-fqxx",
"modified" : "2026-08-13T18:37:34Z",
"published" : "2026-07-21T18:31:02Z",
"aliases" : [ "CVE-2026-64825" ],
"summary" : "Home Assistant Core vulnerable to Path Traversal via backup upload during onboarding",
"details" : "Home Assistant Core before 2026.6.0 contains a path traversal vulnerability that allows unauthenticated attackers to write arbitrary files to any directory on the host filesystem by uploading a crafted backup archive during the initial onboarding window. Attackers can manipulate the 'name' field inside the uploaded archive's backup.json to supply an absolute path, causing pathlib.Path.__truediv__ to discard the configured backup directory prefix and write attacker-controlled content to arbitrary locations, with full filesystem access when the process runs as root.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "homeassistant"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2026.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-64825"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/pull/172368"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/commit/567fe858289876b68b8162a77bd46e1e1af79752"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/home-assistant/core"
}, {
"type" : "WEB",
"url" : "https://github.com/home-assistant/core/releases/tag/2026.6.0"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/home-assistant-core-path-traversal-file-write-via-backup-upload"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-13T18:37:34Z",
"nvd_published_at" : "2026-07-21T16:17:21Z"
}
}