Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network-reachable hermes-agent config input endpoint
-
DeliveryCraft malicious environment variable line with injection payload
-
ExploitSubmit crafted input to _sanitize_env_lines processing path
-
ExecutionBypass insufficient sanitization logic
-
PersistInjected content reaches downstream component interpreter
-
ImpactAchieve 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
More in Hermes Agent
View allRemote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary
Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands
Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the
Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass
Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula
Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker
Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp
Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t
Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi
Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t
Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t
Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti
EUVD-2026-33555
GHSA-mv8x-fg99-32mf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB