# CVE-2026-117573: hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-27T13:08:03.276Z
- Modified: 2026-11-02T20:17:36.053Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- masc-ucsc hagent: up to 761eec627a1e6fb128a2a8ce9245aa595cc2f7af

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/masc-ucsc/hagent/issues/98> (exploit, issue-tracking)
- <https://github.com/masc-ucsc/hagent> (product)
- <https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_arduino.py#L776> (technical-description)
- <https://github.com/masc-ucsc/hagent/blob/761eec627a1e6fb128a2a8ce9245aa595cc2f7af/hagent/mcp/mcp_esp32.py#L682> (technical-description)
- <https://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-117573](https://www.cve.org/CVERecord?id=CVE-2026-117573), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-117573](https://nvd.nist.gov/vuln/detail/CVE-2026-117573), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-117573 · Whole record: https://cve.day/CVE-2026-117573.json · Rebuilt by cve.day 2026-11-25T22:59:47.368Z
