
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-130164 is a high-severity environment variable injection vulnerability in the hermes-agent Python package (NousResearch) that allows code running inside a terminal backend to set arbitrary environment variables for processes on the agent machine, enabling code execution as the gateway user. It affects versions >= 0.21.6 and < 0.23.2, introduced when tools/bot_desktop/sandbox_host.py was added in v0.21.6 (2026-09-28). The vulnerability was disclosed on November 19, 2026 via a GitHub Security Advisory. It carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory).
The root cause is classified under CWE-15 (External Control of System or Configuration Setting) and CWE-426 (Untrusted Search Path). The vulnerable code path in tools/bot_desktop/sandbox_host.py (_published(), lines 206–217) runs cat /env inside the terminal backend and stores every KEY=VALUE pair with no key or value validation. The resulting environment variables are merged into processes spawned on the agent machine — including the browser harness, cua-driver helper spawns, and local terminal children — via a chain through runtime.py → browser_session.py → browser_use_cli.py. Because the /hermes-bot-desktop/<session>/env directory is writable by any process inside the backend, an attacker-controlled dependency or script can inject variables such as LD_PRELOAD or DYLD_INSERT_LIBRARIES to achieve code execution on the agent machine (GitHub Advisory).
Successful exploitation grants code execution on the agent machine as the gateway user, exposing provider API keys, authentication tokens, session history, and connected account credentials stored under the Hermes home directory. On Linux hosts where the gateway user has access to a rootful Docker daemon, this is effectively equivalent to root-level compromise. The attack crosses the declared terminal-backend isolation boundary (SECURITY.md §2.2), constituting an escape from an OS-level isolation posture (GitHub Advisory).
Exploitation requires a non-local terminal backend (docker or ssh) with Bot Desktop running inside it, and a subsequent browser or computer-use spawn on the agent machine — making it a local attack vector with high complexity and low privileges required. The advisory documents a proven end-to-end reproduction using real product code (no stubs): writing a shared library to /workspace (a bind mount visible on the agent host) and appending LD_PRELOAD=/x.so to the env file, resulting in code execution as uid 1000 (Linux) or uid 501 (macOS via DYLD_INSERT_LIBRARIES). No public exploit kits or in-the-wild exploitation have been reported, and no EPSS score or CISA KEV listing is currently available for this CVE (GitHub Advisory).
hermes-agent v0.21.6–v0.23.1 with Bot Desktop hosted inside a docker or ssh terminal backend, and that a browser or computer-use action will be triggered later./proc/self/mountinfo inside the backend to find the host path of the /workspace bind mount, which is accessible from both the backend and the agent machine.x.so on Linux or x.dylib on macOS) with a constructor payload into /workspace on the backend (which maps to the agent host filesystem).LD_PRELOAD=/workspace/x.so (Linux) or DYLD_INSERT_LIBRARIES=/workspace/x.dylib (macOS) to /tmp/hermes-bot-desktop/<session>/env inside the backend.browser_exec or computer-use call; the agent reads the env file without validation and passes the injected variable to the harness Popen call on the agent machine..so, .dylib) in /workspace or other bind-mounted directories accessible from both the backend and agent host; unexpected entries in /tmp/hermes-bot-desktop/<session>/env beyond the six expected keys (DISPLAY, XAUTHORITY, DBUS_SESSION_BUS_ADDRESS, XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_DATA_HOME).cua-driver child processes spawned with unusual environment variables such as LD_PRELOAD, DYLD_INSERT_LIBRARIES, PATH overrides, or unexpected proxy variables; unexpected child processes or network connections originating from the browser harness process.browser_exec or computer-use spawns with environment variables not written by launcher.sh; unexpected process execution under the gateway user account coinciding with backend activity (GitHub Advisory).Upgrade hermes-agent to v0.23.2 or later, which fixes the issue by restricting the env file reader to only the six keys written by launcher.sh and validating their values (e.g., DISPLAY must match a plain X display format; other values must be non-empty and printable). Additionally, the fix ensures that values published by a backend-hosted screen are no longer merged into agent-machine process environments. As a workaround on affected versions, set bot_desktop.placement: gateway or use the default local backend to avoid running Bot Desktop inside a docker or ssh terminal backend (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."