CVE-2026-130164: Hermes Agent: Missing key validation for Bot Desktop screen environment file in non-local terminal backends
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 supportsstreams) with placement auto or terminal, published() in tools/botdesktop/sandboxhost.py accepts arbitrary KEY=VALUE lines from the hermes-bot-desktop env file and propagates them via tools/botdesktop/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 LDPRELOAD, DYLDINSERTLIBRARIES, 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Hermes Agentto a version that resolves this vulnerability.Fixed in 0.23.2
Event History
Frequently Asked Questions
Is a default installation exposed?
The default local terminal backend is not affected. Exposure requires Bot Desktop to be hosted in a non-local terminal backend, including docker, ssh, or a plugin backend that declares supports_streams, with placement set to auto or terminal.
What access does an attacker need to exploit this?
The attacker needs the ability to run code inside the affected terminal backend. That code can write arbitrary environment entries to the Bot Desktop screen environment file, which are later inherited by processes started on the agent machine.
What is the impact if exploitation succeeds?
An attacker can gain code execution on the agent machine as the gateway user when a browser or computer-use process is subsequently spawned. This can expose credentials, tokens, and session history stored under the Hermes home directory.
How can I identify potentially affected deployments?
Check whether Hermes Agent is running a version from 0.21.6 through 0.23.1 and whether Bot Desktop uses docker, ssh, or a streaming plugin terminal backend with auto or terminal placement. Also determine whether browser, computer-use, or local terminal child processes are launched after backend activity.