CVE-2023-41898 Arbitrary URL load in Android WebView in `MyActivity.kt` in Home Assistant Companion for Android

High 8.6 Published Updated

Attackers can load arbitrary URLs in the Home Assistant Android app WebView, enabling JavaScript execution, native code execution, and credential theft.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-41898?

CVE-2023-41898 is a high-severity code injection vulnerability in home-assistant core, published on 19 Oct 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Home assistant is an open source home automation. The Home Assistant Companion for Android app up to version 2023.8.2 is vulnerable to arbitrary URL loading in a WebView. This enables all sorts of attacks, including arbitrary JavaScript execution, limited native code execution, and credential theft. This issue has been patched in version 2023.9.2 and all users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as GitHub Security Lab (GHSL) Vulnerability Report: `GHSL-2023-142`.

Weakness: CWE-94, CWE-345

Which versions are affected by CVE-2023-41898?

It affects 1 product.

Products include Home-Assistant Home Assistant Companion.

How do I fix CVE-2023-41898?

No fix has been published for CVE-2023-41898 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-41898 being exploited?

There is no known exploitation of CVE-2023-41898 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-jvpm-q3hq-86rg.

Is CVE-2023-41898 in your software?

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

Check your SBOMs for free