Skip to main content

hermes-agent CVE-2026-10222

| EUVDEUVD-2026-33555 LOW
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-06-01 VulDB GHSA-mv8x-fg99-32mf
2.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Identify network-reachable hermes-agent config input endpoint
  2. Delivery
    Craft malicious environment variable line with injection payload
  3. Exploit
    Submit crafted input to _sanitize_env_lines processing path
  4. Execution
    Bypass insufficient sanitization logic
  5. Persist
    Injected content reaches downstream component interpreter
  6. Impact
    Achieve partial confidentiality, integrity, or availability impact

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

The attack requires network access to an interface that accepts input processed by the hermes_cli configuration layer, specifically the _sanitize_env_lines function in hermes_cli/config.py. The CVSS vector PR:N confirms no authentication is required, and UI:N confirms no victim interaction is needed. The critical limiting factor is AC:H (High Attack Complexity), meaning the attacker must meet race conditions, precise input formatting requirements, or other deployment-specific constraints that are not trivially reproducible - the description explicitly notes 'the exploitation is known to be difficult.' Exploitation is further bounded to configurations where environment-line input from a remote source reaches the vulnerable parsing function; deployments where configuration input is exclusively local or access-controlled at the network boundary are not exposed to the network vector. The CVSS RC:R (Reasonable, not Confirmed) modifier indicates the vulnerability report has not been vendor-confirmed, so the exact triggering conditions may differ from what the POC demonstrates.

Impact

The CVSS base score of 5.6 (Medium) reflects a balanced picture: network reachability (AV:N) and no authentication requirement (PR:N/UI:N) lower the barrier to access, but high attack complexity (AC:H) and unchanged scope (S:U) with only low-level impacts across all three impact pillars (C:L/I:L/A:L) cap the ceiling. The exploit maturity modifier E:P in the temporal vector confirms the publicly released proof-of-concept, raising real-world risk above what the base score alone suggests. However, no CISA KEV listing exists, meaning confirmed in-the-wild exploitation has not been substantiated by a government authority. The RC:R (Reasonable confidence) modifier in the CVSS vector indicates the vulnerability has not been fully confirmed by the vendor - notably because the vendor never responded to disclosure. The remediation level RL:X (Not Defined) confirms no official fix has been released. The combination of a public POC, no vendor patch, and a vendor that has gone dark on disclosure is a meaningful risk amplifier beyond the moderate CVSS score. EPSS data is not provided in the input; risk teams should query the current EPSS score independently. The high attack complexity is the primary mitigating factor - defenders should monitor for any simplification of the exploit chain in updated POC versions.

Exploit ScenarioDerived

A remote attacker with knowledge of the hermes-agent configuration input surface crafts a malicious environment variable line containing injection characters (e.g., newline sequences, shell metacharacters, or delimiter escapes) and submits it to the application through a network-accessible pathway. The _sanitize_env_lines function in hermes_cli/config.py fails to neutralize these sequences before passing them to a downstream component - such as a subprocess, file writer, or interpreter - resulting in partial code execution, configuration tampering, or service disruption. A public proof-of-concept exists on GitHub (https://gist.github.com/YLChen-007/7ee2eeaa383b3540d2e8854250c03fb0) demonstrating this pathway, though the high attack complexity (AC:H) means the attacker must satisfy specific preconditions to reliably trigger the injection.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 01, 2026

Injection vulnerability in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenticated attackers to exploit improper neutralization in the _sanitize_env_lines function of hermes_cli/config.py, achieving partial confidentiality, integrity, and availability impact. The flaw is tagged as code injection (CWE-74), meaning attacker-controlled input passed through this sanitization routine may reach a downstream component in an executable or interpreted context. A public proof-of-concept exploit exists (GitHub gist), though the CVSS vector assigns high attack complexity, indicating exploitation is not trivial. No vendor patch exists; the vendor was unresponsive to coordinated disclosure.

RemediationAI

No vendor-released patch identified at time of analysis. The CVSS remediation level is RL:X (Not Defined), and the vendor did not respond to coordinated disclosure, leaving users without an official fix. As a compensating control, operators should restrict network access to any interface or API endpoint that accepts input processed by the hermes_cli configuration layer - this directly limits AV:N exploitability. Specifically, if hermes-agent is deployed with a network-accessible configuration endpoint, that endpoint should be placed behind authentication or network-level ACLs (e.g., firewall rules limiting access to trusted IPs), accepting the trade-off of reduced operational flexibility. Where possible, treat all environment-line input as untrusted and pre-validate it against a strict allowlist of characters (e.g., only alphanumeric and underscore for KEY names, restricted value character sets) at the ingestion boundary before it reaches _sanitize_env_lines. Operators should monitor the VulDB entry https://vuldb.com/vuln/367501 and the GitHub gist at https://gist.github.com/YLChen-007/7ee2eeaa383b3540d2e8854250c03fb0 for any updated exploit variants that may reduce the AC:H complexity. Pinning to the last known-safe version is not currently possible given the open-ended CPE range.

Affected VersionsENISA

hermes-agent 2026.4.7
hermes-agent 2026.4.20
hermes-agent 2026.4.30
hermes-agent 2026.4.12
hermes-agent 2026.4.14
hermes-agent 2026.4.15
hermes-agent 2026.4.2
hermes-agent 2026.4.5
hermes-agent 2026.4.26
hermes-agent 2026.4.25
hermes-agent 2026.4.19
hermes-agent 2026.4.10
hermes-agent 2026.4.28
hermes-agent 2026.4.13
hermes-agent 2026.4.11
hermes-agent 2026.4.29
hermes-agent 2026.4.4
hermes-agent 2026.4.23
hermes-agent 2026.4.1
hermes-agent 2026.4.17
hermes-agent 2026.4.8
hermes-agent 2026.4.21
hermes-agent 2026.4.0
hermes-agent 2026.4.18
hermes-agent 2026.4.3
hermes-agent 2026.4.22
hermes-agent 2026.4.24
hermes-agent 2026.4.16
hermes-agent 2026.4.6
hermes-agent 2026.4.27
hermes-agent 2026.4.9

Affected Packages

pypi hermes-agent fix: 0.18.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

CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) describes failures where user-controlled data is insufficiently escaped or filtered before being passed to an interpreter, shell, or other downstream consumer. Here, the vulnerable surface is the _sanitize_env_lines function in hermes_cli/config.py, which is responsible for processing environment variable line entries as part of the CLI configuration layer of the hermes-agent AI agent framework by NousResearch. The function name implies it was designed to clean environment-variable formatted input (e.g., KEY=VALUE pairs), but fails to neutralize special characters or sequences that a downstream component - such as a shell, subprocess spawner, or configuration parser - would interpret as control characters or injection payloads. The affected CPE is cpe:2.3:a:nousresearch:hermes-agent:*:*:*:*:*:*:*:*, indicating all versions up to and including 2026.4.30. The CVSS vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L confirms the attack can be executed remotely without authentication, but requires elevated exploitation complexity to succeed.

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 2.9 LOW
CVSS:4.0/AV:N/AC:H/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
High
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
Jun 01, 2026 - 06:22 NVD
MEDIUM LOW
CVSS changed
Jun 01, 2026 - 06:22 NVD
5.6 (MEDIUM) 2.9 (LOW)

DescriptionCVE.org

A security flaw has been discovered in NousResearch hermes-agent up to 2026.4.30. Affected by this issue is the function _sanitize_env_lines of the file hermes_cli/config.py. The manipulation results in injection. It is possible to launch the attack remotely. The attack requires a high level of complexity. The exploitation is known to be difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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