{"id":"CVE-2026-117573","summary":"hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools","details":"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.","modified":"2026-11-04T02:30:47.553094640Z","published":"2026-10-27T13:08:03.276Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117573.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-78"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117573.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-117573"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools"},{"type":"REPORT","url":"https://github.com/masc-ucsc/hagent/issues/98"},{"type":"PACKAGE","url":"https://github.com/masc-ucsc/hagent"},{"type":"ARTICLE","url":"https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776"},{"type":"ARTICLE","url":"https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/masc-ucsc/hagent","events":[{"introduced":"0"},{"last_affected":"761eec627a1e6fb128a2a8ce9245aa595cc2f7af"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"761eec627a1e6fb128a2a8ce9245aa595cc2f7af"}],"source":"AFFECTED_FIELD"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-117573.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}