CVE-2026-117573
7.8 HIGHpublic exploit availablePublished 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.
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
- https://github.com/masc-ucsc/hagent
- https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776
- https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682
- https://github.com/masc-ucsc/hagent/issues/98
- https://github.com/masc-ucsc/hagent/issues/98
All references
- https://github.com/masc-ucsc/hagent
- https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776
- https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682
- https://github.com/masc-ucsc/hagent/issues/98
- https://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools
- https://github.com/masc-ucsc/hagent/issues/98
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-117567PoC
- HIGHCVE-2026-106931
- HIGHCVE-2026-110642PoC
- HIGHCVE-2026-117561PoC
- HIGHCVE-2026-117569PoC
- HIGHCVE-2026-94434
- HIGHCVE-2026-59176PoC
- HIGHCVE-2020-37279PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.