CVE-2026-130164: Hermes Agent let code inside a Docker or SSH terminal backend set LD_PRELOAD and other environment variables for processes on the agent machine through the Bot Desktop env file, gaining code execution there (fixed 0.23.2)
Hermes Agent, Nous Research's open-source autonomous AI agent, can run its terminal tool in a separate backend such as Docker or SSH. From 0.21.6 to 0.23.1, when Bot Desktop was hosted inside that backend, the agent read the screen's env file back from a directory any process in the backend can write, accepted every KEY=VALUE line without checks, and merged the values into processes it started on the agent machine itself (the browser harness, computer-use helpers and local terminal children). Code running in the sandbox, such as a dependency or script the agent runs there, could set LD_PRELOAD, DYLD_INSERT_LIBRARIES or PATH and get code execution on the agent machine as the gateway user on the next browser or computer-use spawn, exposing provider keys, tokens and session history under the Hermes home. Fixed in 0.23.2.
What it is
Affected code: _published() in tools/bot_desktop/sandbox_host.py read <backend tmp>/hermes-bot-desktop/<profile>/env; the values flowed through tools/bot_desktop/runtime.py into the browser harness, the cua-driver helper and the local terminal environment. The launcher only ever writes six keys (DISPLAY, XAUTHORITY, DBUS_SESSION_BUS_ADDRESS and three XDG_* paths), but the reader had no allow-list.
Preconditions per NVD: terminal.backend set to docker or ssh (or a plugin backend declaring supports_streams) with placement auto or terminal. The default local backend, backends that cannot host a screen (Modal, Daytona, Vercel) and Hermes Cloud in its default configuration are not affected.
The reporter proved it end to end on Linux (code execution as the agent-side user) and on macOS with colima using DYLD_INSERT_LIBRARIES. Where the gateway user can reach a rootful Docker daemon, the advisory notes this is equivalent to root.
Hermes Agent v0.23.2 was released on 16 November 2026; the advisory (CWE-15, CWE-426) was published on 19 November and NVD published the CVE on 23 November 2026.
How to check
- Check your Hermes Agent version: 0.21.6 up to (not including) 0.23.2 is affected.
- Check your config for terminal.backend: docker or ssh (or a streaming plugin backend) with Bot Desktop running inside it.
- Look for unexpected keys (LD_PRELOAD, DYLD_INSERT_LIBRARIES, PATH, proxy variables) in the hermes-bot-desktop env file inside the backend.
How to fix
- Upgrade Hermes Agent to 0.23.2 or later.
- If you ran untrusted code in a Docker or SSH backend with Bot Desktop on an affected version, rotate the provider keys and tokens stored under the Hermes home.
- Run the gateway as a user that cannot reach a rootful Docker daemon.
pip show hermes-agent | grep -i version # or check your install's release tag
# inside the Docker/SSH backend, look for injected loader variables in the screen env file
grep -E 'LD_PRELOAD|DYLD_|^PATH=' /tmp/hermes-bot-desktop/*/env Sources
- highCVE-2026-140425: Hermes Agent's dashboard accepted any origin, so a page on another localhost port could steal its session token and run shell commands through /api/ws (fixed 0.22.7)
- highCVE-2026-114463: Hermes Agent's webhook gateway gave a route named like build:external the toolsets of route build, turning a web-only route into terminal and file access