CVE-2026-64825 Home Assistant Core < 2026.6.0 Path Traversal File Write via Backup Upload
Unauthenticated attackers can write arbitrary files to the host filesystem via a crafted backup upload during onboarding, potentially achieving code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-64825?
CVE-2026-64825 is a critical path traversal vulnerability in home-assistant Home Assistant Core, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-22
Which versions are affected by CVE-2026-64825?
3 open source packages ship an affected version, including homeassistant.
| Package | Affected | Fixed in |
|---|---|---|
homeassistant PyPI | All versions | 2026.6.0 |
homeassistant PyPI | All versions | 2026.6.0 |
homeassistant PyPI | All versions | 2026.6.0 |
How do I fix CVE-2026-64825?
Upgrade homeassistant to 2026.6.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-64825 being exploited?
There is no known exploitation of CVE-2026-64825 in the wild and no public exploit code.
Sources
Also known as GHSA-5hxg-r395-fqxx, PYSEC-2026-3669.