CVE-2026-9368 Details
Description
A vulnerability was identified in NousResearch hermes-agent up to 2026.4.16. This impacts the function execute_code of the file tools/code_execution_tool.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.
A vulnerability exists in NousResearch Hermes Agent versions through 2026.4.16, specifically within the 'execute_code' function of the Environment Variable Handler component. This issue allows for remote code execution by bypassing the application's approval process for executing potentially dangerous commands. The vulnerability arises from inadequate sanitization of environment variables, which enables sensitive credentials to leak into sandboxed subprocesses. The problem is exacerbated by the fact that the 'execute_code' tool is enabled by default and can be exploited without any user interaction.
Users can update to Hermes Agent version 2026.4.23 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 24, 2026CISA-ADP
Assessed May 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/43c72d19668421abe8ce10f299323a0a | [email protected] | ExploitTechnical Description |
| https://vuldb.com/submit/812229 | [email protected] | Permission Required |
| https://vuldb.com/vuln/365331 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/365331/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-264 | Permissions, Privileges, and Access Controls | [email protected] |
| CWE-265 | Privilege Issues | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| NousResearch hermes-agent | <= v2026.4.16 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 24, 2026 | New CVE Received | [email protected] |
Volerion