---
id: CVE-2026-64825
title: >-
  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 o…
summary: >-
  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 o…
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L'
cwe:
  - CWE-22
vendor: home-assistant
product: Home Assistant Core
affected:
  - home_assistant_core < 2026.6.0
patched:
  - homeassistant 2026.6.0
published: '2026-07-21'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:28.357'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64825'
references:
  - url: >-
      https://github.com/home-assistant/core/commit/567fe858289876b68b8162a77bd46e1e1af79752
    label: disclosure@vulncheck.com
  - url: 'https://github.com/home-assistant/core/pull/172368'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/home-assistant/core/releases/tag/2026.6.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/home-assistant-core-path-traversal-file-write-via-backup-upload
    label: disclosure@vulncheck.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64825'
  - url: 'https://github.com/home-assistant/core'
tags:
  - nvd
  - cve.org
  - osv
  - pip
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-07-21T17:08:53.718755Z'
epss: 0.0058
epssPercentile: 0.47484
aliases:
  - GHSA-5hxg-r395-fqxx
ecosystem: pip
ingestedAt: '2026-08-14T19:18:45.388Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-64825)

Affected packages:

- `homeassistant < 2026.6.0`

Patched in:

- `homeassistant 2026.6.0`

Source: https://osv.dev/vulnerability/GHSA-5hxg-r395-fqxx
