Home Assistant Core vulnerable to Path Traversal via backup upload during onboarding
PYSEC-2026-3669 · CVE-2026-64825 · GHSA-5hxg-r395-fqxx
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-64825
- WEB https://github.com/home-assistant/core/pull/172368
- WEB https://github.com/home-assistant/core/commit/567fe858289876b68b8162a77bd46e1e1af79752
- PACKAGE https://github.com/home-assistant/core
- WEB https://github.com/home-assistant/core/releases/tag/2026.6.0
- WEB https://www.vulncheck.com/advisories/home-assistant-core-path-traversal-file-write-via-backup-upload
- PACKAGE https://pypi.org/project/homeassistant
- ADVISORY https://github.com/advisories/GHSA-5hxg-r395-fqxx
Ready to move
Start Securing
Free, no credit card | First findings in minutes