OS command injection in hagent Arduino and ESP32 MCP tools
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
hagent through commit 761eec6 contains an OS command injection flaw in its MCP tools for Arduino and ESP32. The args parameter of the hagent_arduino and hagent_esp32 tools is interpolated into arduino-cli and idf.py commands run with shell enabled, so shell metacharacters are not neutralized (CWE-78). A local user with low privileges, or a prompt-injected agent, can supply crafted args to execute commands as the MCP server user.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
No affected products listed by the sources yet.
Remediation
The sources list no fixed version for hagent.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Timeline
- 2026-10-27 Threatist record created from CVE-2026-117573
- 2026-10-27 Alias added: GHSA-j5hx-w574-wh9m
- 2026-10-28 Priority changed: MEDIUM → LOW
- 2026-11-02 CISA SSVC decision points changed
- 2026-11-02 Priority changed: LOW → HIGH
References
Sources
- CVE-2026-117573 · CVE Program
- CVE-2026-117573 · NVD
- FIRST EPSS
- GHSA-j5hx-w574-wh9m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences