Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessNetwork scan for hermes-agent
-
DeliverySend crafted request to terminal_tool
-
ExploitInject OS commands via approval.py
-
ExecutionExecute arbitrary system commands
-
ImpactEstablish persistence or exfiltrate data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of hermes-agent. The vulnerability requires only that the hermes-agent service is accessible over the network and the terminal_tool component is enabled. The detect_dangerous_command function in tools/approval.py must be reachable through the agent's API or interface. No authentication is required based on the CVSS PR:N indicator, and no user interaction is needed per UI:N. |
| Impact | The CVSS 3.1 score of 7.3 (High) accurately reflects the severity with network vector (AV:N), low complexity (AC:L), and no required privileges (PR:N) or user interaction (UI:N). The exploit maturity is marked as 'Proof-of-Concept' (E:P) in the CVSS vector, confirmed by the publicly available exploit on GitHub. EPSS data is not provided, but the combination of public POC availability, remote exploitability, and lack of vendor response creates significant risk. This is not yet listed in CISA KEV, indicating no confirmed active exploitation in the wild. The remediation level is marked as 'Not Defined' (RL:X), consistent with the vendor's non-response to disclosure. |
| Exploit ScenarioDerived | An attacker sends a specially crafted request to the hermes-agent service containing malicious OS commands embedded in parameters processed by detect_dangerous_command. Since the function fails to sanitize input, the commands execute with the privileges of the hermes-agent process. The public exploit code at https://gist.github.com/YLChen-007/75fb10319693e86106ced2ef3a472c80 demonstrates the specific attack technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 24, 2026
Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands through the terminal_tool component's approval mechanism. The vulnerability affects all versions up to commit 5157f5427f19488b31c6fdebbacd15d798ce7f63 and has publicly available exploit code demonstrating the attack. The vendor has not responded to disclosure attempts, leaving users without an official patch.
RemediationAI
No vendor-released patch identified at time of analysis. The vendor did not respond to early disclosure attempts according to the report. As an immediate mitigation, disable or restrict access to the terminal_tool component if possible, particularly the approval.py functionality. Organizations using hermes-agent should implement network segmentation to prevent untrusted access to systems running the agent, and monitor for suspicious command execution through the terminal_tool interface. Consider implementing web application firewall rules to filter potentially malicious inputs targeting the detect_dangerous_command function. Given the lack of vendor support, evaluate alternative AI agent frameworks with active security maintenance.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the detect_dangerous_command function within tools/approval.py, which is part of the terminal_tool component. This function appears to implement security controls for command execution but fails to properly sanitize user input before passing it to the operating system. The root cause is CWE-78 (OS Command Injection), where untrusted input is incorporated into operating system commands without proper neutralization of special elements. Based on the CPE identifier, hermes-agent is a software tool by NousResearch, likely an AI agent framework with terminal execution capabilities.
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 determined in NousResearch hermes-agent up to 5157f5427f19488b31c6fdebbacd15d798ce7f63. This affects the function detect_dangerous_command of the file tools/approval.py of the component terminal_tool. This manipulation causes os command injection. It is possible to initiate the attack remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
CVE-2026-9367 is a critical remote command injection vulnerability in NousResearch hermes-agent that allows unauthenticated attackers to execute arbitrary operating system commands, potentially compromising systems running affected versions. The lack of vendor response and available patch creates immediate operational risk for organizations relying on this component, requiring urgent mitigation or discontinuation of use.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable terminal_tool component entirely if not required for operations; (2) Restrict network access to hermes-agent instances via firewall rules to trusted internal IPs only; (3) Implement runtime application self-protection (RASP) to block OS command execution patterns; (4) Run hermes-agent processes with minimal OS privileges (dedicated low-privilege user account); (5) Enable comprehensive logging and alerting on all command execution attempts within the hermes-agent process; (6) Consider containerization with restrictive seccomp profiles to limit system calls. None of these substitutes for patching-transition planning is essential.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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
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
Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica
EUVD-2026-31579
GHSA-h9mm-g7gx-9mx6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB