CVE-2026-9368: NousResearch hermes-agent Environment Variable code_execution_tool.py execute_code sandbox

Published May 24, 2026
·
Updated

A vulnerability was identified in NousResearch hermes-agent up to 2026.4.16. This impacts the function executecode of the file tools/codeexecutiontool.py of the component Environment Variable Handler. Such manipulation leads to sandbox issue. It is possible to launch 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.

Affected Software

1 affected component
NousResearch hermes-agent<=2026.4.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove NousResearch hermes-agent from your environment.

    Uninstall or remove the hermes-agent from systems where it is not required. If the agent is required, do not deploy or re-enable it until a vendor-provided fix is available.

  2. Configuration

    Disable or neutralize the execute_code function in tools/code_execution_tool.py (for example, remove or comment out calls to execute_code, replace its body to return immediately, or remove execute permissions on the tool) until an official vendor fix is available.

    NousResearch hermes-agent (Environment Variable Handler - tools/code_execution_tool.py) execute_code = disabled
  3. Compensating control

    Restrict network access to hosts running hermes-agent: block or limit inbound access to the agent's management/endpoints to trusted IPs only, isolate affected hosts from untrusted networks, and apply network-level controls (firewall/ACL) or WAF rules to prevent remote exploitation.

  4. Operational

    Assume possible exploitation where the agent was exposed: perform incident response and forensic investigation on affected hosts, look for signs of compromise related to code execution, and remediate any discovered compromise before restoring services. Rotate any credentials that may have been exposed if compromise is confirmed or suspected.

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2026-9368?

CVE-2026-9368 has a severity rating of 7.3, which is considered high.

2

How do I fix CVE-2026-9368?

To fix CVE-2026-9368, upgrade to the latest version of NousResearch hermes-agent that addresses this vulnerability.

3

What components are affected by CVE-2026-9368?

CVE-2026-9368 affects the Environment Variable Handler in the execute_code function of tools/code_execution_tool.py.

4

Can CVE-2026-9368 be exploited remotely?

Yes, CVE-2026-9368 can be exploited remotely due to the nature of the vulnerability.

5

What impact does CVE-2026-9368 have on system security?

CVE-2026-9368 may lead to potential sandbox escape issues, compromising the security environment.

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