Home AssistantApplication

CVE-2023-41893

MEDIUM · 5.4 CVSS v3.1 Published 2023-10-20
Fix available
A fix is available. Upgrade to 2023.9.0 or later.
See remediation →
61/100
Remediation priority · Elevated
Remotely reachable No privileges

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 is an open source home automation. The audit team’s analyses confirmed that the `redirect_uri` and `client_id` are alterable when logging in. Consequently, the code parameter utilized to fetch the `access_token` post-authentication will be sent to the URL specified in the aforementioned parameters. Since an arbitrary URL is permitted and `homeassistant.local` represents the preferred, default domain likely used and trusted by many users, an attacker could leverage this weakness to manipulate a user and retrieve account access. Notably, this attack strategy is plausible if the victim has exposed their Home Assistant to the Internet, since after acquiring the victim’s `access_token` the adversary would need to utilize it directly towards the instance to achieve any pertinent malicious actions. To achieve this compromise attempt, the attacker must send a link with a `redirect_uri` that they control to the victim’s own Home Assistant instance. In the eventuality the victim authenticates via said link, the attacker would obtain code sent to the specified URL in `redirect_uri`, which can then be leveraged to fetch an `access_token`. Pertinently, an attacker could increase the efficacy of this strategy by registering a near identical domain to `homeassistant.local`, which at first glance may appear legitimate and thereby obfuscate any malicious intentions. This issue has been addressed in version 2023.9.0 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

OAuth parameter injection vulnerability in Home Assistant allows attackers to manipulate `redirect_uri` and `client_id` parameters during authentication. When a victim authenticates via a malicious link, the authorization code gets sent to an attacker-controlled URL instead of the legitimate instance, enabling token theft. The attack requires the victim to have their Home Assistant exposed to the internet and to click a crafted authentication link.

MitigationUpgrade Home Assistant to version 2023.9.0 or later. Avoid exposing Home Assistant to the internet if possible, and verify all OAuth redirect URLs before authenticating.

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

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Home AssistantApplication
Affected:< 2023.9.0

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
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

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. Check installed Home Assistant version
    Log into the Home Assistant web UI and look at the version displayed in the bottom left of the sidebar, or run `ha version` via the CLI if you have SSH access to the host
    Affected if The displayed version is any version prior to 2023.9.0 (for example, 2023.8.4, 2023.7.0, etc.)
  2. Verify OAuth or cloud integration is configured
    Navigate to Configuration > Integrations in the Home Assistant UI and look for Home Assistant Cloud (Nabu Casa) or any configured OAuth-based integrations such as Google Home, Amazon Alexa, or other cloud-linked services
    Affected if Any OAuth-dependent cloud service or integration is active and the version is vulnerable
  3. Check for external URL exposure
    Go to Configuration > General Settings and inspect the 'External URL' field. Also check your router or firewall for any port forwarding rules (typically ports 8123 or 443) pointing to your Home Assistant instance
    Affected if An external URL is configured in Home Assistant or inbound NAT/port forwarding rules exist that make the instance reachable from the internet, combined with a vulnerable version
  4. Confirm remote access is enabled
    Look for the 'Remote Control' toggle in the Home Assistant Cloud settings or check for the 'homeassistant.remote' component being loaded in your configuration.yaml file
    Affected if Remote control via Nabu Casa or manual remote access is enabled and the version is vulnerable

You are affected if your Home Assistant version is below 2023.9.0 AND you have OAuth-based integrations or cloud services configured AND your instance is accessible from the internet via an external URL or port forwarding.

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
Upgrade available Upgrade to 2023.9.0 or later
Fixed in 2023.9.0
Interim mitigation

Upgrade Home Assistant to version 2023.9.0 or later. Avoid exposing Home Assistant to the internet if possible, and verify all OAuth redirect URLs before authenticating.

Recommended fix High confidence

Home Assistant 2023.9.0 or later

  1. Upgrade Home Assistant to version 2023.9.0 or later by following the standard upgrade procedure for your installation method (e.g., Home Assistant OS, Container, Supervised, or Core)
  2. After upgrading, verify the version by checking the Home Assistant About page (Settings > System > About)
  3. Ensure the new version is running without issues before exposing the instance to the internet
Caveat Refer to the Home Assistant 2023.9.0 release notes for any breaking changes that may affect your configuration or integrations

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

Fix this in Home Assistant Scoped from the published advisory
  • Consultation1.0 h
  • Implementation2.0 h
  • Testing1.0 h
  • Review / QA1.0 h
5.0 hours of engineering $890
Get the upgrade done

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-41893 — 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-2023-41893 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