脆弱性ウォッチ

新着 / 2026年11月28日 / CVE-2026-130164

Hermes Agentの環境変数注入による任意コード実行の脆弱性

重要 7.8

掲載

何が問題か

Hermes Agentの0.21.6から0.23.1までのバージョンでは、Bot Desktopを非ローカルのターミナルバックエンド内で動作させた場合、エージェントプロセスがバックエンドから書き込み可能な画面環境ファイルを検証せずに読み込み、その内容をエージェント側マシン上で起動するプロセスの環境に反映します。terminal.backendがdockerまたはssh(またはsupports_streamsを宣言するプラグインバックエンド)で、placementがautoまたはterminalの場合に該当し、ターミナルバックエンド内のコードが環境変数を設定できる問題です。

悪用されると

ターミナルバックエンド内のコードが LD_PRELOAD や PATH などの変数を設定し、後続のブラウザやコンピュータ操作の起動時にエージェントマシン上でゲートウェイユーザー権限のコード実行につながる可能性があります。Hermesホーム配下の認証情報、トークン、セッション履歴が露出するおそれがあります。CVSS v3.1基本値は7.8(HIGH)です。

取るべき対応

バージョン0.23.2で修正されているため、0.23.2以降へ更新してください。更新までの間は、terminal.backendをdockerやssh等に設定してBot Desktopを使用していないか確認することを推奨します。

AIが出典から要約し、数値を機械照合しています。

更新履歴

  1. 初回掲載。

指標

深刻度(CVSS v3.1)重要 7.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
実際の攻撃での悪用CISA KEVには未掲載
30日以内に悪用される確率(EPSS)0.2%(全体の上位 97.1%)
問題の種類CWE-15、CWE-426
CVE公開日2026-11-23

出典

公式の説明(英語の原文)

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.