What happened
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.
Why it matters
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.
Attack vector
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).
Affected systems
NousResearch hermes-agent >= 0.21.6, < 0.23.2
Mitigation
Upgrade to Hermes Agent 0.23.2 or later. Advisory: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh