Skip to main content

Hermes Agent EUVDEUVD-2026-133410

| CVE-2026-130164 HIGH
External Control of System or Configuration Setting (CWE-15)
2026-11-23 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain code execution inside docker/ssh terminal backend
  2. Delivery
    Write LD_PRELOAD line into bot-desktop screen env file
  3. Exploit
    Agent reads env file without key/value validation
  4. Execution
    Variable merged into browser/computer-use child spawn
  5. Impact
    Attacker library loads as gateway user, exfiltrates keys and session history

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration Configuration hardening
Exploitation Conditions

Exploitation requires a specific non-default deployment: terminal.backend must be set to docker or ssh (or a plugin backend declaring supports_streams) with placement auto or terminal, and Bot Desktop must be hosted inside that backend. The attacker must already be able to run code inside that terminal backend (e.g. a dependency or script the agent executes there) in order to write arbitrary KEY=VALUE lines - such as LD_PRELOAD, DYLD_INSERT_LIBRARIES, PATH, or proxy/CDP variables - into the backend-writable hermes-bot-desktop env file. A subsequent browser or computer-use spawn on the agent machine is then needed to trigger loading of the injected variable. Limiting factors: the default local backend is not affected (no isolation boundary to cross), backends that cannot host a screen (Modal, Daytona, Vercel) refuse placement, and Hermes Cloud as shipped defaults to local; the attacker also needs code execution inside the backend and must await a later spawn, which together make this AC:H and non-default rather than a remote unauthenticated path.

Impact

Signals point to a real but conditional risk rather than a broad emergency. The CVSS 3.1 base score of 7.8 (HIGH) is driven by full C:H/I:H/A:H code-execution impact and a scope change (S:C), but the vector itself tempers urgency: AV:L means the attacker must already be running code inside the terminal backend, AC:H reflects the non-default preconditions, and PR:L requires existing foothold/privilege in that backend. The vuln.today Decision label is 'this_week', consistent with a serious-but-not-drop-everything priority. No CISA KEV listing is present in the input, so there is no confirmed active exploitation; no EPSS score was supplied, so statistical exploitation probability cannot be weighed. The GHSA advisory documents a proven end-to-end reproduction (Linux container and macOS/colima), so a public PoC reference exists even though it is not packaged as a verified drop-in exploit. Net: this is a genuine isolation-escape/RCE worth prompt patching for anyone running Bot Desktop inside a docker or ssh backend, but it is NOT a widespread unauthenticated internet-facing threat - the default local backend, Modal/Daytona/Vercel backends, and Hermes Cloud's default configuration are explicitly unaffected, so realistic exposure is confined to a specific opt-in deployment mode.

Exploit ScenarioDerived

An agent operating inside a docker or ssh terminal backend runs a malicious dependency or script that writes a shared library into a host-visible bind mount and appends 'LD_PRELOAD=<host path>/x.so' (or DYLD_INSERT_LIBRARIES on macOS) to the backend's hermes-bot-desktop env file. On the next browser_exec or computer-use spawn, the Hermes agent reads that unvalidated env file and merges the variable into the child process launched on the agent machine, executing the attacker's library constructor as the gateway user. A proven reproduction exists in the advisory; because the local attack requires AC:H preconditions (backend hosting Bot Desktop plus a subsequent spawn), it is reliable but not trivial to arrange.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 23, 2026

Environment-variable injection in Hermes Agent 0.21.6 through 0.23.1 lets code running inside a Docker or SSH terminal backend escalate onto the agent host: the agent reads the hermes-bot-desktop env file back from the backend, accepts arbitrary KEY=VALUE lines, and merges them into the environment of processes it later spawns locally (browser harness, computer-use driver, local terminal children), so a value such as LD_PRELOAD or DYLD_INSERT_LIBRARIES yields code execution as the gateway user on the next browser or computer-use spawn. The flaw only applies to a non-default deployment where terminal.backend is docker or ssh (or a plugin backend declaring supports_streams) with placement auto or terminal and Bot Desktop hosted inside that backend; the default local backend, backends that cannot host a screen (Modal, Daytona, Vercel), and Hermes Cloud as shipped are unaffected. Exploitation is authenticated and local in CVSS terms (PR:L, AV:L, AC:H) and requires the attacker to already execute code inside the backend plus a subsequent spawn, so this is a conditional isolation-escape risk rather than a remote unauthenticated path; no public exploit code was identified at time of analysis. Fixed in 0.23.2.

RemediationAI

Vendor-released patch: 0.23.2 - upgrade hermes-agent to v0.23.2 or later, which restricts the read-back to the six keys the launcher writes (DISPLAY must be a plain X display, other values non-empty and printable, everything else dropped and logged by name) and stops merging backend-published values into the environment of processes started on the agent machine, passing them only to consumers running inside the backend. For deployments that cannot upgrade immediately, the vendor-documented workaround is to avoid hosting Bot Desktop inside a docker or ssh terminal backend: set bot_desktop.placement to gateway, or keep the default local backend; the trade-off is that the sandboxed screen no longer runs inside the backend's isolation boundary, which is precisely the isolation posture the escape crosses, so any screen still hosted in Docker/SSH should be treated as a path to code execution as the gateway user until patched. Because the injected variables land in local child processes as the gateway user, credentials, provider keys, tokens, session history and connected accounts under the Hermes home directory should be considered exposed on any host where an affected configuration ran and untrusted code executed inside the backend; rotate those secrets and review the hermes-bot-desktop env file contents. Details and fixed-version guidance are in the advisory at https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh and the fix PR at https://github.com/NousResearch/hermes-agent/pull/154487.

Affected VersionsENISA

hermes-agent 0.21.6, < 0.23.2

Affected Packages

euvd hermes_agent fix: 0.23.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hermes Agent is an open-source autonomous AI agent that runs tool-using workflows across CLI, desktop and messaging interfaces, including a 'Bot Desktop' feature that can host an X/Xfce screen either on the gateway or inside a terminal backend. The relevant component, tools/bot_desktop/sandbox_host.py (added in v0.21.6), executes cat <dir>/env inside the backend in its _published() routine and stored every KEY=VALUE pair it found with no key allowlist and no value validation, even though the launcher (tools/bot_desktop/launcher.sh) only ever writes DISPLAY, XAUTHORITY, DBUS_SESSION_BUS_ADDRESS, XDG_CONFIG_HOME, XDG_CACHE_HOME and XDG_DATA_HOME. Because that env file sits in <backend tmp>/hermes-bot-desktop/<profile>/ and is writable by any process inside the backend, this is a CWE-15 (external control of system or configuration setting) flaw that also maps to CWE-426 (untrusted search path) once PATH or loader variables such as LD_PRELOAD / DYLD_INSERT_LIBRARIES are among the injected keys. The tainted values propagated through tools/bot_desktop/runtime.py published_env() -> desktop_env() into tools/browser_session.py build_browser_env() -> tools/browser_use_cli.py _base_subprocess_env() (harness Popen), into tools/computer_use/cua_backend.py cua_driver_child_env(), and into the published-env overlay in tools/environments/local.py; the DISPLAY value also reached the system-prompt screen note in agent/prompt_builder.py and a host-side marker file without validation. The fix in PR #154487 keeps only the six launcher keys, validates their values (DISPLAY must be a plain X display; the rest non-empty and printable), and stops merging screen-published values into processes started on the agent machine, passing them only to consumers running inside the backend. Severity is scored S:C with C:H/I:H/A:H because the escape crosses the terminal-backend isolation posture described in the project's SECURITY.md, and AC:H/PR:L because it needs code execution inside the backend and a later spawn.

Know when Hermes Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.8 HIGH
AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Attacker runs code inside the backend (AV:L, PR:L); non-default backend plus a required later spawn make AC:H; escape to the agent machine is S:C with full C/I/A code execution.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 23, 2026 - 22:02 EUVD
CVE Published
Nov 23, 2026 - 20:18 cve.org
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Hermes Agent versions 0.21.6-0.23.1 contain an environment-variable injection vulnerability that lets an attacker with code execution inside a Docker or SSH terminal backend escalate to the agent host, potentially compromising sensitive data and operations. The flaw requires a non-default deployment configuration with Bot Desktop hosted in the backend, so impact is limited to organizations using that setup. Leadership should prioritize patching or mitigating because exploitation can lead to full host compromise under specific but realistic conditions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting network access to Docker/SSH backends, disabling Bot Desktop hosting in those backends if not essential, monitoring for anomalous environment variable changes, and enforcing least privilege on the gateway user.

Threat Intelligence Overview

Prevalence
Low
niche open-source AI agent, limited and recent production footprint
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-71963 HIGH POC
8.6 Sep 03

Remote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary

CVE-2026-9367 MEDIUM POC
5.5 May 24

Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands

CVE-2026-14628 MEDIUM POC
5.5 Jul 04

Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the

CVE-2026-9351 MEDIUM POC
5.5 May 24

Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass

CVE-2026-9368 MEDIUM POC
5.5 May 24

Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula

CVE-2026-7396 MEDIUM POC
5.5 Apr 29

Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker

CVE-2026-10221 MEDIUM POC
5.5 Jun 01

Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp

CVE-2026-10220 MEDIUM POC
5.5 Jun 01

Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t

CVE-2026-9366 MEDIUM POC
5.5 May 24

Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi

CVE-2026-9354 MEDIUM POC
5.5 May 24

Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t

CVE-2026-9353 MEDIUM POC
5.5 May 24

Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t

CVE-2026-10224 MEDIUM POC
5.5 Jun 01

Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy