← All advisories

CVE-2026-130164highCode execution2026-11-23

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.

01.

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.

02.

How to check

  1. Check your Hermes Agent version: 0.21.6 up to (not including) 0.23.2 is affected.
  2. Check your config for terminal.backend: docker or ssh (or a streaming plugin backend) with Bot Desktop running inside it.
  3. Look for unexpected keys (LD_PRELOAD, DYLD_INSERT_LIBRARIES, PATH, proxy variables) in the hermes-bot-desktop env file inside the backend.
03.

How to fix

  1. Upgrade Hermes Agent to 0.23.2 or later.
  2. 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.
  3. 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
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.