Hermes Agentの脆弱性、非ローカルのターミナル環境から実行環境を書き換えられるおそれ
概要
Hermes Agentの0.21.6から0.23.1までには、Bot Desktopを非ローカルのターミナルバックエンドで動かしたとき、画面環境ファイルの検証が不足している脆弱性があります。ターミナルバックエンド内のコードが環境変数を書き換え、エージェントを動かすマシン上でゲートウェイユーザーの権限によりコードを実行され、認証情報やセッション履歴が漏えいするおそれがあります。0.23.2で修正されているため、該当する版を使っている場合は0.23.2以降へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Hermes Agentの0.21.6から0.23.1までには、Bot Desktopを非ローカルのターミナルバックエンドで動かしたとき、画面環境ファイルの検証が不足している脆弱性があります。ターミナルバックエンド内のコードが環境変数を書き換え、エージェントを動かすマシン上でゲートウェイユーザーの権限によりコードを実行され、認証情報やセッション履歴が漏えいするおそれがあります。0.23.2で修正されているため、該当する版を使っている場合は0.23.2以降へ更新してください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Hermes Agent is an open-source autonomous AI agent built by Nous Research for running tool-using workflows across CLI, desktop, and messaging interfaces. From 0.21.6 to 0.23.1, when Bot Desktop is hosted inside a non-local terminal backend, the agent process reads a backend-writable screen environment file without validating keys or values and merges its entries into the environment of processes started on the agent machine. Specifically, when terminal.backend is set to docker or ssh (or a plugin backend declaring supports_streams) with placement auto or terminal, _published() in tools/bot_desktop/sandbox_host.py accepts arbitrary KEY=VALUE lines from the hermes-bot-desktop env file and propagates them via tools/bot_desktop/runtime.py into the browser harness, computer-use helpers, and local terminal children. Code running inside the terminal backend can therefore set variables such as LD_PRELOAD, DYLD_INSERT_LIBRARIES, or PATH and gain code execution on the agent machine as the gateway user upon a subsequent browser or computer-use spawn, exposing credentials, tokens, and session history under the Hermes home directory. The default local backend, backends that cannot host a screen (Modal, Daytona, and Vercel), and Hermes Cloud in its default configuration are not affected. This issue is fixed in version 0.23.2.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com