CVE-2026-130164
Hermes Agent: Missing key validation for Bot Desktop screen environment file in non-local terminal backends
Check your servers for CVE-2026-130164
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-130164 affects hermes-agent, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.37%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 33.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 28 Nov 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| hermes-agent |
affected >= 0.21.6, < 0.23.2
|
Is my server affected?
Find the installed version of hermes-agent and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i hermes-agent
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-130164 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-130164RHEL, Rocky, Alma, Fedora
rpm -q hermes-agent
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-130164Alpine
apk list --installed | grep -i hermes-agentWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-130164
trivy image --scanners vuln IMAGE | grep CVE-2026-130164
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Exploits and proof of concept
- https://github.com/NousResearch/hermes-agent/security/advisories/GHSA-p22p-9ph6-gmrh github.com · exploit
Other references
- https://github.com/NousResearch/hermes-agent/pull/154487 github.com
- https://github.com/NousResearch/hermes-agent/commit/9c44c34ac74bec800ca25c32e7d5e9b1dd47168d github.com
Source: the record CVE-2026-130164 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse