homeassistant

CVE-2025-25305

CVE-2025-25305 is a high-severity security vulnerability in homeassistant (pip), affecting versions < 2024.1.6. It is fixed in 2024.1.6.

Key facts
CVSS score
7.0
High
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
homeassistant
Fixed in
2024.1.6
Disclosed
2025

Summary

Summary Problem: Potential man-in-the-middle attacks due to missing SSL certificate verification in the project codebase and used third-party libraries. Details In the past, aiohttp-session/request had the parameter verifyssl to control SSL certificate verification. This was a boolean value. In aiohttp 3.0, this parameter was deprecated in favor of the ssl parameter. Only when ssl is set to None or provided with a correct configured SSL context the standard SSL certificate verification will happen. When migrating integrations in Home Assistant and libraries used by Home Assistant, in some cases the verifyssl parameter value was just moved to the new ssl parameter. This resulted in these integrations and 3rd party libraries using request.ssl = True, which unintentionally turned off SSL certificate verification and opened up a man-in-the-middle attack vector. Example: https://github.com/home-assistant/core/blob/c4411914c2e906105b765c00af5740bd0880e946/homeassistant/components/discord/notify.py#L84 When you scan the libraries used by the integrations in Home Assistant, you will find more issues like this. The general handling in Home Assistant looks good, as homeassistant.helpers.aoihttpclient.asyncgetconnector handles it correctly. PoC Check that expired.badssl.com:443 gives an SSL error in when connecting with curl or browser. Add the integration adguard with the setting host=expired.badssl.com, port=443, use-ssl=true, verify-ssl=true. Check the logs - you get a HTTP 403 response. Expected behavior: The integration log shows an ssl.SSLCertVerificationError. The following code shows the problem with ssl=True. No exception is raised when ssl=True (Python 3.11.6).

Impact

Severity and exposure

CVE-2025-25305 has a CVSS score of 7.0 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (2024.1.6). Upgrading removes the vulnerable code path.

Affected versions

pip

  • homeassistant (< 2024.1.6)

Security releases

  • homeassistant → 2024.1.6 (pip)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2025-25305 is reachable in your applications. Explore open-source security for your team.

See if CVE-2025-25305 is reachable in your applications. Get a demo

Remediation advice

Upgrade homeassistant to 2024.1.6 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2025-25305

What is CVE-2025-25305?

CVE-2025-25305 is a high-severity security vulnerability in homeassistant (pip), affecting versions < 2024.1.6. It is fixed in 2024.1.6.

How severe is CVE-2025-25305?

CVE-2025-25305 has a CVSS score of 7.0 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of homeassistant are affected by CVE-2025-25305?

homeassistant (pip) versions < 2024.1.6 is affected.

Is there a fix for CVE-2025-25305?

Yes. CVE-2025-25305 is fixed in 2024.1.6. Upgrade to this version or later.

Is CVE-2025-25305 exploitable, and should I be worried?

Whether CVE-2025-25305 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2025-25305 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2025-25305?

Upgrade homeassistant to 2024.1.6 or later.

Stop the waste.
Protect your environment with Kodem.