CVE-2026-130164: Hermes Agent code execution via screen environment file merge
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-130164
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
Summary
CVE-2026-130164 affects Hermes Agent, the open-source autonomous AI agent from Nous Research, in versions 0.21.6 through 0.23.1. When Bot Desktop runs inside a non-local terminal backend, tools/bot_desktop/sandbox_host.py (_published()) accepts arbitrary KEY=VALUE lines from the hermes-bot-desktop env file and propagates them into the agent's processes. Code inside the terminal backend can set variables such as LD_PRELOAD, DYLD_INSERT_LIBRARIES, or PATH, gaining code execution as the gateway user on the agent machine when a browser or computer-use process is later spawned, which exposes credentials, tokens, and session history under the Hermes home directory. The default local backend, Modal, Daytona, Vercel, and Hermes Cloud in its default configuration are not affected.
Mitigation
Fixed in version 0.23.2.
Related items
- CriticalCVE-2026-118285: Azure Machine Learning server-side request forgery allows privilege elevationSimilar attack · NVD/CVE Database
- MediumCVE-2026-135287: LiteLLM Proxy callback injection through request body callbacks fieldsSimilar attack · NVD/CVE Database
- MediumCVE-2026-135212: AiSOC missing authorization in agents service exposes other tenantsSimilar attack · NVD/CVE Database
- MediumAI Agents Zip From Flaw Discovery to Root Access in 11 MinutesSimilar attack · Dark Reading
- MediumAgentic Attacks: In The WildSimilar attack · Wiz Research Blog