← Back to search

CVE-2026-117573

7.8 HIGHpublic exploit available

Published 2026-10-27 · Updated 2026-11-02

AI risk analysis

Summary
The hagent tool (commit 761eec6 and earlier) contains an OS command injection flaw in its hagent_arduino and hagent_esp32 components, where user-supplied args are interpolated into shell commands executed via subprocess.run(shell=True), allowing authenticated local users or prompt-injected agents to execute arbitrary shell commands as the server user.
Exploitability
Exploitation requires local access and valid MCP client credentials (PR:L) with no user interaction needed (UI:N), making it straightforward for an attacker already inside the system or via prompt injection.
Blast radius
Successful exploitation grants full compromise of confidentiality, integrity, and availability for the MCP server process, potentially enabling lateral movement, data theft, or persistence on the host.
Detection
Monitor for subprocess calls involving arduino-cli or idf.py with non-standard or shell-metacharacter-containing arguments in MCP server logs; look for unexpected child processes spawned from the hagent process with suspicious command lines.
Prioritized remediation
Upgrade to hagent commit 761eec7 or later, which removes shell=True and sanitizes/validates the args parameter before use in subprocess calls.
os-command-injectionrcemcplocalprompt-injection

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

hagent through commit 761eec6 contains an OS command injection vulnerability that allows MCP clients to execute shell commands by injecting metacharacters into the args parameter of the hagent_arduino and hagent_esp32 tools. Attackers or prompt-injected agents can supply crafted args interpolated into arduino-cli and idf.py commands run with subprocess.run(shell=True) to execute commands as the MCP server user.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.