CVE-2026-9367: OS Command Injection in NousResearch hermes-agent
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.
AI Analysis
Technical Summary
The vulnerability in NousResearch hermes-agent arises from improper handling of input in the detect_dangerous_command function within the terminal_tool component, specifically in tools/approval.py. This flaw enables remote attackers to perform OS command injection, potentially allowing execution of arbitrary commands on the affected system. The affected version is identified by the commit hash 5157f5427f19488b31c6fdebbacd15d798ce7f63. Despite early vendor notification, no official fix or advisory has been issued. The vulnerability is publicly disclosed, increasing the risk of exploitation, although no active exploitation has been documented.
Potential Impact
Successful exploitation could allow remote attackers to execute arbitrary operating system commands on the affected device, potentially leading to unauthorized system control or data compromise. The CVSS score of 6.9 reflects a medium severity with network attack vector and no required privileges or user interaction. However, the lack of an official patch or mitigation increases the risk for affected users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the vendor has not responded and no official fix is available, users should consider applying manual mitigations such as restricting network access to the hermes-agent service, employing application-level input validation or sandboxing, and monitoring for suspicious activity related to command execution. Stay alert for any future vendor advisories or community patches.
CVE-2026-9367: OS Command Injection in NousResearch hermes-agent
Description
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.
CVSS v4.0
Score 6.9medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in NousResearch hermes-agent arises from improper handling of input in the detect_dangerous_command function within the terminal_tool component, specifically in tools/approval.py. This flaw enables remote attackers to perform OS command injection, potentially allowing execution of arbitrary commands on the affected system. The affected version is identified by the commit hash 5157f5427f19488b31c6fdebbacd15d798ce7f63. Despite early vendor notification, no official fix or advisory has been issued. The vulnerability is publicly disclosed, increasing the risk of exploitation, although no active exploitation has been documented.
Potential Impact
Successful exploitation could allow remote attackers to execute arbitrary operating system commands on the affected device, potentially leading to unauthorized system control or data compromise. The CVSS score of 6.9 reflects a medium severity with network attack vector and no required privileges or user interaction. However, the lack of an official patch or mitigation increases the risk for affected users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the vendor has not responded and no official fix is available, users should consider applying manual mitigations such as restricting network access to the hermes-agent service, employing application-level input validation or sandboxing, and monitoring for suspicious activity related to command execution. Stay alert for any future vendor advisories or community patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-05-23T10:33:13.039Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a12c1f509f6977edb44a353
Added to database: 05/24/2026, 09:16:37 UTC
Last enriched: 05/31/2026, 20:43:21 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 73
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.