CVE-2026-9367: NousResearch hermes-agent terminal_tool approval.py detect_dangerous_command os command injection

Published May 24, 2026
·
Updated

A vulnerability was determined in NousResearch hermes-agent up to 5157f5427f19488b31c6fdebbacd15d798ce7f63. This affects the function detectdangerouscommand of the file tools/approval.py of the component terminaltool. 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.

Affected Software

1 affected component
NousResearch hermes-agent<=5157f5427f19488b31c6fdebbacd15d798ce7f63

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove NousResearch/hermes-agent from your environment.

    Uninstall NousResearch hermes-agent from affected systems (or remove the terminal_tool component) if the agent is not required.

  2. Configuration

    Disable the terminal_tool component or prevent execution of tools/approval.py (remove/rename the file or adjust permissions) to stop use of detect_dangerous_command.

    NousResearch hermes-agent (terminal_tool - tools/approval.py) terminal_tool enabled = false
  3. Compensating control

    Prevent remote exploitation by restricting network access to hosts running hermes-agent: block or limit agent management/agent ports to trusted IPs, place hosts behind a firewall/ACL, or isolate them on a restricted network segment.

  4. Operational

    Investigate systems for signs of exploitation (since the exploit is publicly disclosed). If compromise is suspected, follow incident response procedures (isolate affected hosts, perform forensic analysis, remediate or rebuild, and monitor for further activity).

Event History

May 24, 2026
CVE Published
via MITRE·08:30 AM
Data Sourced
via MITRE·08:30 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeakness
Apr 28, 58520
Event
via FIRST·08:53 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-9367?

The severity of CVE-2026-9367 is rated as high with a score of 7.3.

2

How do I fix CVE-2026-9367?

To fix CVE-2026-9367, ensure you update to the latest version of NousResearch hermes-agent that addresses the os command injection vulnerability.

3

What component is affected by CVE-2026-9367?

CVE-2026-9367 affects the detect_dangerous_command function in the approval.py file of the NousResearch hermes-agent terminal_tool component.

4

What type of vulnerability is CVE-2026-9367?

CVE-2026-9367 is classified as an OS Command Injection vulnerability.

5

What can attackers do with CVE-2026-9367?

Attackers can exploit CVE-2026-9367 to execute arbitrary commands on the server through the vulnerable detect_dangerous_command function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203