CWE-940Weakness · CWE-940

CVE-2025-25305

HIGH · 7.0 CVSS v3.1 Published 2025-02-18
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
79/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

In the migration from aiohttp-session to aiohttp 3.0, the boolean `verify_ssl` parameter was incorrectly moved to the new `ssl` parameter. Setting `ssl=True` in aiohttp 3.0 actually disables SSL certificate verification instead of enabling it, creating a man-in-the-middle vulnerability in affected Home Assistant integrations and third-party libraries.

MitigationUpgrade to Home Assistant Core version 2024.1.6 or later to receive the patch for this vulnerability.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify aiohttp version in use
    Run pip show aiohttp or check requirements files for aiohttp>=3.0.0
    Affected if aiohttp version 3.0.0 or higher is installed
  2. Search for ssl=True in code
    Grep recursively for 'ssl=True' or 'ssl = True' in application source code, particularly in files that create aiohttp ClientSession objects
    Affected if Code contains ssl=True passed to aiohttp ClientSession or related methods
  3. Check for verify_ssl parameter usage
    Search for 'verify_ssl' parameter in aiohttp client code - the vulnerable pattern incorrectly moved this to 'ssl'
    Affected if Code shows evidence of migrating from verify_ssl to ssl parameter without proper SSL context handling
  4. Inspect aiohttp client session creation
    Review all locations where aiohttp.ClientSession is instantiated, looking for SSL-related keyword arguments
    Affected if ClientSession is created with ssl parameter set to boolean True rather than an SSLContext object or properly configured context
  5. Review integration configurations
    For Home Assistant, examine custom integrations or third-party components that make external HTTP requests
    Affected if Custom or third-party integrations use aiohttp with the vulnerable ssl=True pattern

A system is affected if it runs aiohttp 3.0+ and contains code where ssl=True is passed to aiohttp ClientSession, inadvertently disabling SSL certificate verification.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade to Home Assistant Core version 2024.1.6 or later to receive the patch for this vulnerability.

Recommended fix High confidence

2024.1.6

  1. Backup your Home Assistant configuration and data before upgrading
  2. Update Home Assistant Core to version 2024.1.6 or later
  3. After upgrading, verify that integrations using network connections are functioning correctly
  4. Check Home Assistant logs for any SSL-related errors after the upgrade

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
15.0 hours of engineering $2,640
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-25305 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-25305 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data