{"id":"CVE-2026-117573","title":"hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools","summary":"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…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-78"],"vendor":"masc-ucsc","product":"hagent","affected":["hagent <= 761eec627a1e6fb128a2a8ce9245aa595cc2f7af"],"published":"2026-10-27","updated":"2026-10-27","sourceUpdated":"2026-10-27T13:08:03.276Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-117573","references":[{"url":"https://github.com/masc-ucsc/hagent/issues/98","label":"GitHub Issue #98"},{"url":"https://github.com/masc-ucsc/hagent"},{"url":"https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776"},{"url":"https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682"},{"url":"https://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools","label":"VulnCheck Advisory: hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools"}],"tags":["cve.org"],"ingestedAt":"2026-10-27T16:11:59.341Z","slug":"CVE-2026-117573","body":"## Overview\n\nhagent 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.\n\n## Affected\n\n- `hagent <= 761eec627a1e6fb128a2a8ce9245aa595cc2f7af`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}