Skip to main content
Menu
CVEs

Hermes Agent code execution via unvalidated screen environment file

Affects Hermes Agent 0.21.6 through 0.23.1 when Bot Desktop runs inside a docker or ssh terminal backend. Fixed in 0.23.2.

CVE-2026-130164Published November 23, 2026, updated

7.8HighCNA
Exploited
No known exploitation
Fix
Fixed in 0.23.2
Who is exposed
Specific setups only

Summary

Hermes Agent, an open-source autonomous AI agent from Nous Research, does not validate entries in its Bot Desktop screen environment file when Bot Desktop runs inside a non-local Docker or SSH terminal backend. A local user with low privileges who runs code inside that backend can inject variables such as LD_PRELOAD into processes the agent later starts on the host, gaining code execution as the gateway user and access to credentials, tokens, and session history.

Written by a model

Original description

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.

Who should check

Teams running hermes-agent 0.21.6 through 0.23.1 with Bot Desktop hosted in a docker or ssh terminal backend

“Affected: v0.21.6 through v0.23.1.”

github.com

What to do

  1. Check whether your setup matches what the bug needs.

    Non-local terminal backend that can host a screen (docker or ssh, or a plugin backend declaring supports_streams) Bot Desktop is started inside that terminal backend A later browser or computer-use spawn happens on the agent machine Affected versions 0.21.6 through 0.23.1
  2. Upgrade to a fixed version: 0.23.2.

  3. Workaround: Do not run Bot Desktop inside a docker or ssh terminal backend (set bot_desktop.placement: gateway, or use the default local backend).

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-130164 (Hermes Agent: Missing key validation for Bot Desktop screen environment file in non-local terminal backends), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-130164 (entry last updated 2026-11-23):
Affected:
- NousResearch hermes-agent: from 0.21.6, fixed in 0.23.2
Fixed versions: 0.23.2.
Conditions (all must be true for the bug to be hit):
- Non-local terminal backend that can host a screen (docker or ssh, or a plugin backend declaring supports_streams) (source: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh)
- Bot Desktop is started inside that terminal backend (source: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh)
- A later browser or computer-use spawn happens on the agent machine (source: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh)
- Affected versions 0.21.6 through 0.23.1 (source: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: local access, low-privilege login, no user action.
Workaround: Do not run Bot Desktop inside a docker or ssh terminal backend (set bot_desktop.placement: gateway, or use the default local backend). (source: https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh)
CISA KEV: CVE-2026-130164 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-130164 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh
- https://github.com/NousResearch/hermes-agent/pull/154487
- https://github.com/NousResearch/hermes-agent/commit/9c44c34ac74bec800ca25c32e7d5e9b1dd47168d
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-130164
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-130164"}.

Affected versions

cve.now Index

13Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 63 if added to CISA KEV
  • Would score about 58 if CISA's SSVC rates exploitation active
  • Would score about 23 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 5

KindSource
Vendor advisory 1Establishes: Affected and fixed versions.
AdvisoryGitHub · NousResearch/hermes-agent · Advisory GHSA-p22p-9ph6-gmrh
CVE record 2Establishes: The identifier and description.
RecordCVE List · CVE-2026-130164
RecordNVD · CVE-2026-130164
Other links 2
RepositoryGitHub · NousResearch/hermes-agent · Pull request #154487
RepositoryGitHub · NousResearch/hermes-agent · Commit 9c44c34a

Questions about CVE-2026-130164

Is CVE-2026-130164 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

Code running inside a non-local terminal backend can set environment variables, such as dynamic-loader variables, for processes on the agent machine. This can lead to code execution on the agent machine as the gateway user, which exposes provider keys, tokens, session history and connected accounts.

Source: github.com

Which versions are affected by CVE-2026-130164?

hermes-agent: from 0.21.6 before 0.23.2.

Source: cve.now feed data

Am I affected, and how do I check?

Versions 0.21.6 through 0.23.1 are affected, and only when Bot Desktop is started inside a docker or ssh terminal backend, or a plugin backend that declares supports_streams. The issue also needs a later browser or computer-use spawn on the agent machine. Check the installed version and whether bot_desktop.placement is set to gateway.

Source: github.com

How do I fix CVE-2026-130164?

Upgrade to Hermes Agent 0.23.2, which contains the fix (#154487). Until you can upgrade, do not run Bot Desktop inside a docker or ssh terminal backend; set bot_desktop.placement to gateway or use the default local backend.

Source: github.com

No corrections so far. Something wrong on this page? Report an error.