CVE-2025-65713: Homeassistant Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-pp3g-xmm4-5cw9
CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-65713
GHSA Identifier GHSA-pp3g-xmm4-5cw9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Homeassistant
Package Ecosystem PyPI
Published Date
Last Updated

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.

homeassistant fixed: 2025.8.0
pip install homeassistant>=2025.8.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-65713 Affected Homeassistant Versions

1 component(s)
Fixed Versions:
2025.8.0
Product / Package Ecosystem Affected Versions Fixed Version
homeassistant
PyPI
< 2025.8.0
2025.8.0

References

Frequently Asked Questions

What is CVE-2025-65713?
CVE-2025-65713 is a security vulnerability in Homeassistant involving Home Assistant Core before is vulnerable to Directory Traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Homeassistant versions are affected?
Affected versions include releases prior to 2025.8.0 across affected packages: homeassistant.
What version fixes CVE-2025-65713?
Upgrading to 2025.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is homeassistant affected?
Yes, homeassistant is affected in releases prior to 2025.8.0. Upgrade your dependency to 2025.8.0 or later.
What CWE is associated with CVE-2025-65713?
CVE-2025-65713 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check PyPI dependencies for CVE-2025-65713?
Run the dependency tree command: 'pip show homeassistant'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}