CVE-2025-25305 SSL validation for outgoing requests in Home Assistant Core and used libs not correct

High 7.0 Published Updated

Home Assistant Core fails to verify SSL certificates due to incorrect parameter migration, allowing man-in-the-middle attacks on outgoing requests.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-25305?

CVE-2025-25305 is a high-severity vulnerability in home-assistant core, published on 18 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Home Assistant Core is an open source home automation that puts local control and privacy first. Affected versions are subject to a potential man-in-the-middle attacks due to missing SSL certificate verification in the project codebase and used third-party libraries. In the past, `aiohttp-session`/`request` had the parameter `verify_ssl` 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 `verify_ssl` 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. This issue has been addressed in version 2024.1.6 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-940

Which versions are affected by CVE-2025-25305?

3 open source packages ship an affected version, including homeassistant.

PackageAffectedFixed in
homeassistant PyPIAll versions2024.1.6
homeassistant PyPIAll versions2024.1.6
homeassistant PyPIAll versions2024.1.6

How do I fix CVE-2025-25305?

Upgrade homeassistant to 2024.1.6 or later.

Is CVE-2025-25305 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-25305 exists.

Sources

Also known as GHSA-m3pm-rpgg-5wj6, PYSEC-2026-1452.

Is CVE-2025-25305 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free