CVE-2026-117573
hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools
masc-ucsc hagent
CVSS
8.5HighExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)No scoreNo FIRST EPSS score in this snapshot yet
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
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.
Text from CVE List
Affected versions 1
- hagentaffected: all versions through 761eec627a1e6fb128a2a8ce9245aa595cc2f7afCVE List
References 5
- vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-toolsAdvisoryvia CVE List
- github.com/masc-ucsc/hagent/issues/98Referencevia CVE List
- github.com/masc-ucsc/hagentReferencevia CVE List
- github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776Referencevia CVE List
- github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682Referencevia CVE List