Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-72580

CVE-2026-72580: xiaoai-patch RCE Vulnerability

CVE-2026-72580 is a command injection vulnerability in duhow/xiaoai-patch affecting Xiaomi smart speakers. Attackers can execute arbitrary commands via unsanitized input. This article covers technical details, impact, and mitigation.

Published:

CVE-2026-72580 Overview

CVE-2026-72580 is an operating system command injection vulnerability in the duhow/xiaoai-patch project through commit fb07049. The project provides a patch that enables local API control of Xiaomi smart speakers. The /mute and /unmute endpoint handlers in api/main.py pass the user-supplied silent query parameter directly to os.system() without sanitization. A remote unauthenticated attacker can inject shell metacharacters to execute arbitrary commands on the speaker. The flaw is classified under CWE-78.

Critical Impact

Remote unauthenticated attackers can execute arbitrary OS commands on affected Xiaomi smart speakers, leading to full device compromise.

Affected Products

  • duhow/xiaoai-patch through commit fb07049
  • Xiaomi smart speakers running the patched firmware exposing the API
  • The api/main.py HTTP service shipped with the patch

Discovery Timeline

  • 2026-08-10 - CVE-2026-72580 published to NVD
  • 2026-08-10 - Last updated in NVD database

Technical Details for CVE-2026-72580

Vulnerability Analysis

The xiaoai-patch project exposes an HTTP API on affected Xiaomi smart speakers to control local playback and audio functions. Two endpoints, /mute and /unmute, accept a silent query parameter from the caller. The handler concatenates that value into a shell command string and invokes os.system() to execute it. Because os.system() spawns a shell, any metacharacter in the parameter (such as ;, |, &&, or backticks) is interpreted by the shell rather than treated as a literal argument.

An attacker who can reach the API over the network can request a URL such as /mute?silent=1;<injected command> and cause the injected command to run with the privileges of the API process. On embedded Linux appliances such as these speakers, that process commonly runs with elevated privileges, providing an immediate path to full device takeover, persistence, and lateral movement within the local network.

Root Cause

The root cause is unsanitized user input flowing into a shell interpreter. The handler in api/main.py builds a command string from the silent parameter and passes it to os.system(), which invokes /bin/sh -c. No input validation, allow-listing, or use of an argument-array API such as subprocess.run([...], shell=False) is performed.

Attack Vector

Exploitation requires only network reachability to the API port on the speaker. No authentication, user interaction, or prior foothold is needed. An attacker on the same Wi-Fi network, or reaching the device through any exposed route, can issue crafted HTTP GET requests to /mute or /unmute with shell metacharacters in the silent value. The injected commands execute in the context of the API service, enabling command execution, credential theft from the device, or use of the speaker as a pivot into the home or enterprise network.

No public proof-of-concept exploit is listed in the CVE record, and the vulnerability is not in the CISA Known Exploited Vulnerabilities catalog at the time of publication.

Detection Methods for CVE-2026-72580

Indicators of Compromise

  • HTTP requests to /mute or /unmute containing shell metacharacters such as ;, |, &, $(, or backticks in the silent parameter.
  • Unexpected outbound connections from smart speakers to attacker-controlled hosts.
  • New or modified files, cron entries, or persistence artifacts on devices running xiaoai-patch.

Detection Strategies

  • Inspect HTTP traffic to smart speaker IP ranges for URL patterns matching /mute?silent= or /unmute?silent= with non-numeric payloads.
  • Alert on any request to the xiaoai-patch API originating from outside the trusted management subnet.
  • Correlate speaker-originated outbound connections with process execution telemetry collected from network sensors.

Monitoring Recommendations

  • Segment IoT devices onto a dedicated VLAN and log all traffic entering and leaving that segment.
  • Baseline normal API usage of the xiaoai-patch service so anomalous query strings are detectable.
  • Enable DNS and NetFlow logging on the IoT segment to identify command-and-control activity following exploitation.

How to Mitigate CVE-2026-72580

Immediate Actions Required

  • Restrict network access to the xiaoai-patch API so only trusted management hosts can reach it.
  • Remove or disable the /mute and /unmute endpoints until a fixed version is deployed.
  • Audit any speakers running commits at or before fb07049 and treat internet-exposed instances as potentially compromised.

Patch Information

No vendor advisory or fixed release is referenced in the CVE record. Track the GitHub Patch Repository and the vulnerable file at api/main.py for updates that replace os.system() with a safe argument-array invocation and add strict input validation on the silent parameter.

Workarounds

  • Block inbound traffic to the API port at the network perimeter and on the local Wi-Fi firewall.
  • Modify api/main.py locally to reject any silent value that is not a strict boolean or integer literal.
  • Replace os.system() calls with subprocess.run([...], shell=False) and pass parameters as list elements rather than concatenated strings.
bash
# Example firewall rule to restrict access to the speaker API
# Allow only the management host 192.0.2.10 to reach the API on TCP/8000
iptables -A INPUT -p tcp --dport 8000 -s 192.0.2.10 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.