Untrusted environment variables in Hermes Agent Bot Desktop
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-426.
Summary
Hermes Agent from 0.21.6 before 0.23.2 trusts a screen environment file that code in a non-local terminal backend can write. When Bot Desktop runs in a docker or ssh backend, the agent merges arbitrary KEY=VALUE entries from that file into the environment of processes it starts on the host. A local attacker with low privileges inside the terminal backend can set variables such as LD_PRELOAD or PATH, which can lead to code execution as the gateway user (CWE-426). The default local backend and some other backends are not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
Description from the CNA
Hermes Agent is an open-source autonomous AI agent built by Nous Research for running tool-using workflows across CLI, desktop, and messaging interfaces. From 0.21.6 to 0.23.1, 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. Specifically, when terminal.backend is set to docker or ssh (or a plugin backend declaring supports_streams) with placement auto or terminal, _published() in tools/bot_desktop/sandbox_host.py accepts arbitrary KEY=VALUE lines from the hermes-bot-desktop env file and propagates them via tools/bot_desktop/runtime.py into the browser harness, computer-use helpers, and local terminal children. Code running inside the terminal backend can therefore set variables such as LD_PRELOAD, DYLD_INSERT_LIBRARIES, or PATH and gain code execution on the agent machine as the gateway user upon a subsequent browser or computer-use spawn, exposing credentials, tokens, and session history under the Hermes home directory. The default local backend, backends that cannot host a screen (Modal, Daytona, and Vercel), and Hermes Cloud in its default configuration are not affected. This issue is fixed in version 0.23.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| NousResearch | hermes-agent | 0.21.6 to before 0.23.2 | 0.23.2 | Patch available | CNA |
- hermes-agent VendorNousResearch Affected 0.21.6 to before 0.23.2 Fixed in 0.23.2 Patch available CNA
Remediation
Update hermes-agent to version 0.23.2, which fixes the issue. The sources list no other fixed version for hermes-agent.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
- Fix · CNA hermes-agent (NousResearch) Fixed in 0.23.2
Timeline
- 2026-11-23 Threatist record created from CVE-2026-130164
- 2026-11-28 CISA SSVC decision points changed
References
More NousResearch vulnerabilities
- TI-2026-50258 Hermes Agent 0.18.2 - 0.21.0 RCE via git core.fsmonitor Config Injection CVSS 4.0HIGH 8.6
- TI-2026-12325 NousResearch hermes-agent Live Webhook Endpoint base.py extract_media path traversal CVSS 4.0MEDIUM 6.9
- TI-2026-08962 NousResearch hermes-agent Webhook Endpoint feishu.py _handle_webhook_request resource consumption CVSS 4.0MEDIUM 6.9
- TI-2026-08959 NousResearch hermes-agent run_agent.py _compress_context injection CVSS 4.0MEDIUM 6.9
- TI-2026-08958 NousResearch hermes-agent skills_tool.py skill_view injection CVSS 4.0MEDIUM 6.9
- TI-2026-08218 NousResearch hermes-agent Environment Variable code_execution_tool.py execute_code sandbox CVSS 4.0MEDIUM 6.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences