hagentのMCPツールに脆弱性、OSコマンドを実行される恐れ
Summary
hagentの761eec6までのバージョンには、Arduino・ESP32向けのMCPツール(hagent_arduino、hagent_esp32)に、OSコマンドを注入される脆弱性(CVE-2026-117573)があります。argsパラメーターに特殊文字を含めた値を渡すと、MCPサーバーの実行ユーザー権限でコマンドを実行される可能性があり、CVSS v4では8.5とされています。修正版の情報は公表されていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
hagentの761eec6までのバージョンには、Arduino・ESP32向けのMCPツール(hagent_arduino、hagent_esp32)に、OSコマンドを注入される脆弱性(CVE-2026-117573)があります。argsパラメーターに特殊文字を含めた値を渡すと、MCPサーバーの実行ユーザー権限でコマンドを実行される可能性があり、CVSS v4では8.5とされています。修正版の情報は公表されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| masc-ucschagent |
≤ 761eec627a1e6fb128a2a8ce9245aa595cc2f7af→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- report github.com
- web github.com
- web github.com
- web github.com