CVE-2024-45352 Xiaomi smarthome application Webview has code execution vulnerability

High 8.8 Published Updated

Attackers can execute malicious code in the Xiaomi smarthome application due to improper input validation in the Webview component.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-45352?

CVE-2024-45352 is a high-severity code injection vulnerability in Xiaomi smarthome application, published on 27 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An code execution vulnerability exists in the Xiaomi smarthome application product. The vulnerability is caused by improper input validation and can be exploited by attackers to execute malicious code.

Weakness: CWE-346

Which versions are affected by CVE-2024-45352?

How do I fix CVE-2024-45352?

No fix has been published for CVE-2024-45352 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-2024-45352 being exploited?

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

Public exploit code: 3 proofs of concept on GitHub.

Sources

Also known as GHSA-mm94-j6p9-32xj.

Is CVE-2024-45352 in your software?

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

Check your SBOMs for free