Impact
hagent's MCP tools, specifically hagent_arduino and hagent_esp32, contain an OS command injection flaw that lets adversaries insert metacharacters into the args parameter. This input is passed directly to arduino-cli and idf.py via subprocess.run with the shell enabled, enabling execution of arbitrary shell commands as the MCP server user. The vulnerability is a classic CWE‑78 problem, exposing the system to command execution and potential full compromise of the underlying operating environment.
Affected Systems
The affected product is Masc‑ucsc's hagent, with the vulnerability present in the versions that include commit 761eec6. No specific version matrix is provided beyond the presence of this commit, so all affected instances of hagent carrying this code are at risk.
Risk and Exploitability
The CVSS score of 8.5 indicates a high severity impact. EPSS data is not available, and the vulnerability is not listed in CISA's KEV catalog, suggesting no known public exploitation yet. However, the flaw is exploitable by any entity able to supply crafted args to the hagent MCP tools, which may include remote attackers if the MCP server accepts external input or local users whose privileges are too high. The resulting execution occurs with the privileges of the MCP server process, potentially giving attackers full system control.
OpenCVE Enrichment