Vulnerability  ·  2026-11-25

Hermes Agent env-file injection lets code in the terminal backend gain code execution on the agent machine

VulnerabilityMedium impactGlobalCVE-2026-130164
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. Because the env file is writable by the terminal backend (which itself may be untrusted), code there can inject LD_PRELOAD/DYLD_INSERT_LIBRARIES/PATH and achieve code execution on the agent machine as the gateway user, exposing the agent's credentials, tokens and session history. Published 2026-11-23; fixed in 0.23.2.
This is a concrete agent-host escape: an autonomous AI agent runs workflows across CLI/desktop/messaging interfaces, so a compromised or malicious terminal backend can escalate to code execution on the machine holding the agent's credentials and session state. It underscores that agent sandboxes and remote backends are a live host-compromise path.
When terminal.backend is docker/ssh with placement auto/terminal, _published() in tools/bot_desktop/sandbox_host.py accepts arbitrary KEY=VALUE lines from the backend-writable hermes-bot-desktop env file and propagates them into the browser harness, computer-use helpers and local terminal children spawned on the agent machine. Code running in the terminal backend can set LD_PRELOAD, DYLD_INSERT_LIBRARIES or PATH and gain code execution as the gateway user on the next browser/computer-use spawn (CWE-15/CWE-426).
NousResearch hermes-agent >= 0.21.6, < 0.23.2
Upgrade to Hermes Agent 0.23.2 or later. Advisory: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh
GitHub advisory GHSA-p22p-9ph6-gmrhNVD
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →