Skip to main content

hermes-agent CVE-2026-9368

| EUVDEUVD-2026-31582 MEDIUM
Privilege Issues (CWE-265)
2026-05-24 VulDB GHSA-wm96-9gfh-vvgq
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Network scan for hermes-agent
  2. Delivery
    Send crafted environment variables
  3. Exploit
    Bypass sandbox restrictions
  4. Execution
    Execute arbitrary code
  5. Impact
    Establish persistence

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of hermes-agent. The vulnerability requires only network access to the hermes-agent service and affects the code execution functionality in tools/code_execution_tool.py. Versions up to 2026.4.16 are confirmed vulnerable.

Impact

The CVSS 3.1 score of 7.3 indicates high severity with network-based, low complexity, no privilege/no interaction required exploitation (AV:N/AC:L/PR:N/UI:N). The EPSS data is not provided, but the exploit code maturity is marked as 'Proof-of-Concept' (E:P) in the CVSS vector. While not listed in CISA KEV, the availability of public exploit code significantly increases real-world risk. The remediation level is marked as unavailable (RL:X) and report confidence as reasonable (RC:R), indicating no vendor fix exists. This combination of remote exploitability, public POC, and no vendor response makes this a priority for organizations using hermes-agent.

Exploit ScenarioDerived

An attacker sends a crafted request to the hermes-agent service containing malicious environment variable values. The execute_code function processes these variables without proper sanitization, allowing the attacker to escape the intended sandbox and execute arbitrary commands with the privileges of the hermes-agent process.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 24, 2026

Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipulate environment variables through the code execution tool, potentially breaking out of the intended security sandbox. The vulnerability has publicly available exploit code and the vendor has not responded to disclosure attempts, leaving systems unpatched.

RemediationAI

No vendor-released patch identified at time of analysis. The vendor was contacted but did not respond to the disclosure. Organizations should consider disabling or removing hermes-agent until a patch becomes available. If the tool must remain operational, implement network-level access controls to restrict who can reach the service, monitor for exploitation attempts targeting the code execution functionality, and consider running the service in an additional isolation layer such as a container or VM with restricted permissions. Review and restrict environment variable access within the deployment environment.

Affected VersionsENISA

hermes-agent 2026.4.11
hermes-agent 2026.4.0
hermes-agent 2026.4.13
hermes-agent 2026.4.8
hermes-agent 2026.4.14
hermes-agent 2026.4.4
hermes-agent 2026.4.1
hermes-agent 2026.4.16
hermes-agent 2026.4.7
hermes-agent 2026.4.3
hermes-agent 2026.4.2
hermes-agent 2026.4.10
hermes-agent 2026.4.15
hermes-agent 2026.4.12
hermes-agent 2026.4.9
hermes-agent 2026.4.5
hermes-agent 2026.4.6

Affected Packages

pypi hermes-agent fix: 0.11.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

The vulnerability affects the execute_code function in tools/code_execution_tool.py, specifically in the Environment Variable Handler component. Based on CWE-265 (Privilege/Sandbox Issues), the root cause appears to be improper isolation or validation when handling environment variables during code execution. The hermes-agent appears to be a code execution or automation tool that implements sandboxing, but the sandbox can be bypassed through environment variable manipulation.

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 (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
May 26, 2026 - 19:52 NVD
HIGH MEDIUM
CVSS changed
May 26, 2026 - 19:52 NVD
7.3 (HIGH) 5.5 (MEDIUM)

DescriptionCVE.org

A vulnerability was identified in NousResearch hermes-agent up to 2026.4.16. This impacts the function execute_code of the file tools/code_execution_tool.py of the component Environment Variable Handler. Such manipulation leads to sandbox issue. It is possible to launch the attack remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.

Executive ViewAI

Why It Matters

NousResearch hermes-agent versions 2026.4.16 and earlier contain a remote sandbox escape vulnerability that allows unauthenticated attackers to manipulate environment variables and compromise the isolation of agent execution environments. This exposes organizations using hermes-agent to arbitrary code execution and potential lateral movement within connected systems, with publicly available exploit code increasing immediate risk.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict hermes-agent deployment to isolated, non-critical environments with no access to sensitive data or production systems; (2) Implement strict network egress filtering and monitor all outbound connections; (3) Disable or remove the code execution tool feature if functionally possible; (4) Apply OS-level sandboxing (containers with minimal privileges, restricted syscalls) to further isolate the agent process; (5) Enable comprehensive logging and alerting on environment variable modifications and code execution attempts.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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-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

CVE-2026-9350 MEDIUM POC
5.5 May 24

Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica

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