Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Hermes Agent instance
-
DeliveryInject crafted content via tool or input channel
-
ExploitContent flows into _compress_context in run_agent.py
-
ExecutionInjection survives compression and is reinterpreted
-
PersistAgent executes attacker-directed instructions or tool calls
-
ImpactData exfiltration or unauthorized action
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | A reachable deployment of NousResearch Hermes Agent at version 0.12.0 or earlier whose agent loop invokes _compress_context in run_agent.py on content the attacker can influence - typically through a tool, retriever, web fetch, or user-input channel that feeds untrusted text into the context-compression step. Per CVSS AV:N/AC:L/PR:N/UI:N, no authentication or user interaction is required once such an input path exists. Exploitation is limited by whether the deployment actually exposes an attacker-influenceable input to the compression routine (purely local, sandboxed, or fully-trusted-input deployments are not reachable), and by the Low C/I/A impact scoping, which constrains realistic damage absent additional downstream sinks (e.g., a tool that executes shell commands on injected output). |
| Impact | Signals are mixed and should be weighed carefully. The CVSS 3.1 base of 7.3 with vector AV:N/AC:L/PR:N/UI:N reflects a remote, low-complexity, unauthenticated trigger, but the C:L/I:L/A:L impact metrics indicate the analyst rated impact as limited rather than full system compromise - consistent with an injection that affects agent behavior or output rather than the host. Exploit Code Maturity is Proof-of-Concept (E:P) and Report Confidence is Reasonable (RC:R), aligning with the publicly available PoC gist. There is no EPSS score, no CISA KEV listing, and no SSVC decision provided, so this is best characterized as publicly exploitable but not confirmed actively exploited. A key caveat: the source is VulDB and the vendor did not respond, so affected-version scoping and root-cause attribution have not been independently validated, which warrants confirmation by reading run_agent.py directly before treating CVSS as authoritative. |
| Exploit ScenarioDerived | An attacker supplies content - via a URL the agent fetches, a tool response it consumes, a document it retrieves, or a user-supplied message - that contains crafted markers which survive into the _compress_context output and are reinterpreted as instructions or code on the next agent iteration. Because a public PoC exists on the YLChen-007 gist and the CVSS vector is AV:N/AC:L/PR:N/UI:N, an external attacker who can influence any content the agent processes can trigger the injection without authentication. The realistic outcome is hijacked agent behavior, leaked context, or invocation of unintended tool calls rather than direct host compromise, consistent with the Low impact ratings. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _compress_context function within run_agent.py (CWE-74). Publicly available exploit code exists and the issue is remotely triggerable without authentication per the CVSS vector, though impact is bounded to Low across confidentiality, integrity, and availability. The vendor was contacted but did not respond, leaving downstream users without an official fix at time of analysis.
RemediationAI
No vendor-released patch identified at time of analysis; the vendor was reportedly contacted but did not respond. Operators should monitor the NousResearch Hermes Agent repository for a fixed release and, in the interim, audit and harden _compress_context in run_agent.py by strictly validating, escaping, or stripping control tokens, delimiters, and instruction-like substrings from any external content (tool outputs, retrieved documents, user messages) before it is concatenated into the compressed context that is fed back to the LLM or to any downstream interpreter. Compensating controls include restricting which tools and data sources the agent can ingest (disable web fetching or untrusted retrieval connectors - trade-off: reduced agent capability), running the agent under a least-privileged service account and sandbox so any code-execution side effect of injection is contained (trade-off: deployment complexity), and gating outbound actions behind human-in-the-loop confirmation (trade-off: throughput). Consult VulDB at https://vuldb.com/vuln/367500 and the PoC at https://gist.github.com/YLChen-007/d343fcfe2c009cd45f56dc475fd5ac03 to derive concrete sanitization rules.
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
Hermes Agent is an LLM-based autonomous agent framework from NousResearch; the affected logic resides in run_agent.py within _compress_context, a routine responsible for summarizing or compressing accumulated context (likely tool outputs, memory, or conversation history) before it is reinjected into the model loop. CWE-74 (Improper Neutralization of Special Elements - Injection) indicates that attacker-influenced data flows into a downstream interpreter (a prompt, shell, eval, or templating layer) without sufficient sanitization. In agent frameworks this class of bug typically enables prompt injection or command/code injection through poisoned context that the agent later acts upon. CPE coverage is cpe:2.3:a:nousresearch:hermes-agent:*:*:*:*:*:*:*:*, indicating all versions up to and including 0.12.0 are in scope.
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: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
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was identified in NousResearch hermes-agent up to 0.12.0. Affected by this vulnerability is the function _compress_context of the file run_agent.py. The manipulation leads to injection. It is possible to initiate 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
Organizations using NousResearch Hermes Agent (through v0.12.0) face immediate risk from remote attackers who can inject malicious prompts without credentials, potentially achieving code execution in autonomous systems. This vulnerability is already publicly exploited and exposes any application relying on Hermes Agent for decision-making or system operations. Leadership must prioritize immediate isolation and alternative remediation, as the vendor has not provided a patch.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict input validation and rate-limiting on all prompts supplied to Hermes Agent; (2) Run agent processes with least-privilege credentials and isolated containers; (3) Deploy network segmentation restricting agent egress to approved endpoints; (4) Enable comprehensive logging and alerting on agent inputs, outputs, and execution patterns for detection of exploitation attempts; (5) Disable Hermes Agent deployment pending migration to alternative solutions.
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.
Related Vulnerabilities in hermes-agent Prompt and Context Injection Flaws
View all 2More 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
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
Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica
EUVD-2026-33554
GHSA-xq8w-9jvx-gm3v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB