CVE-2026-117573
published high CVSS 4.0 · 8.5hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| masc-ucsc | — | hagent0 through 761eec627a1e6fb128a2a8ce9245aa595cc2f7af · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| masc-ucsc | hagent | 0 through 761eec627a1e6fb128a2a8ce9245aa595cc2f7af (affected · git)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
5- 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
- GitHub Issue #98 https://github.com/masc-ucsc/hagent/issues/98
- VulnCheck Advisory: hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools https://www.vulncheck.com/advisories/hagent-through-commit-761eec6-os-command-injection-via-arduino-and-esp32-mcp-tools
Provider assertions
2VulnCheck · cna
hagent through commit 761eec6 OS Command Injection via Arduino and ESP32 MCP Tools
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d41522eb89b628f35010d358c834541f8d5ac7a2f777dbd2f91abcf5bb74c6de
- Ingested
- 02 Nov 2026, 19:26:53 UTC
- Source record
- Official CVE record