{"id":"CVE-2026-117573","state":"PUBLISHED","title":"hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools","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.","publishedAt":"2026-10-27T13:08:03.276Z","updatedAt":"2026-10-27T13:08:03.276Z","severity":{"score":8.5,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["masc-ucsc hagent"],"affected":[{"vendor":"masc-ucsc","product":"hagent","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"761eec627a1e6fb128a2a8ce9245aa595cc2f7af","versionType":"git"}]}],"references":["https://github.com/masc-ucsc/hagent/issues/98","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://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/117xxx/CVE-2026-117573.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-117573","state":"PUBLISHED","datePublished":"2026-10-27T13:08:03.276Z","dateUpdated":"2026-10-27T13:08:03.276Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-27T11:33:16.313Z"},"containers":{"cna":{"title":"hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"masc-ucsc","product":"hagent","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"761eec627a1e6fb128a2a8ce9245aa595cc2f7af","versionType":"git"}]}],"references":[{"url":"https://github.com/masc-ucsc/hagent/issues/98","tags":["issue-tracking"],"name":"GitHub Issue #98"},{"url":"https://github.com/masc-ucsc/hagent","tags":["product"]},{"url":"https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776","tags":["technical-description"]},{"url":"https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools","name":"VulnCheck Advisory: hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.5,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-27T13:08:03.276Z"},"datePublic":"2026-10-24T00:00:00.000Z","x_generator":{"engine":"vulncheck-endgame"}}}}}