Description
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.
Published: 2026-08-10
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An OS command injection flaw exists in the /mute and /unmute endpoints of the duhow/xiaoai-patch project. The handler for these endpoints passes a user–supplied silent query parameter directly to os.system() without any sanitization. Consequently, a remote attacker can inject shell metacharacters and execute arbitrary system commands on the device. This breach would grant full control of the Xiaomi smart speaker, allowing an attacker to exfiltrate data, install malware, or use the device as a foothold for further attacks.

Affected Systems

The vulnerability affects installations of the duhow/xiaoai-patch firmware on Xiaomi smart speakers. No specific version information is listed; any instance that includes the vulnerable /mute and /unmute handlers is at risk.

Risk and Exploitability

The CVSS score of 9.8 reflects the severity of this remote code execution. Because the flaw is exposed through a publicly accessible API, the likelihood of exploitation is high, although the EPSS score is not provided. The vulnerability is not currently listed in the CISA KEV catalog, but the lack of a mitigation from the vendor heightens the risk. An attacker only needs network access to the device’s API service to exploit the flaw, making it immediately actionable from a distance.

Generated by OpenCVE AI on August 10, 2026 at 12:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply an updated version of duhow/xiaoai-patch that removes the unsanitized os.system() call or introduces proper input validation; if unable to upgrade, patch the source by escaping or rejecting shell metacharacters and avoid using os.system for these endpoints.
  • If a patch is unavailable, disable or delete the /mute and /unmute endpoints entirely so that the vulnerable code path cannot be reached from the network.
  • Configure network firewalls or device ACLs to restrict access to the API ports to trusted IP addresses or internal networks only, limiting the exposure of the vulnerable endpoints.

Generated by OpenCVE AI on August 10, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 10 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
Description 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.
Title duhow xiaoai-patch - OS Command Injection in /mute and /unmute Endpoints
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T13:16:18.153Z

Reserved: 2026-08-10T10:32:53.854Z

Link: CVE-2026-72580

cve-icon Vulnrichment

Updated: 2026-08-10T13:16:14.209Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T13:00:04Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')