Vulnerability · Published May 24, 2026 · Assigned by VulDB
CVE-2026-9368NousResearch hermes-agent Environment Variable code_execution_tool.py execute_code sandbox
High 7.3
In plain English
A high-severity security flaw in hermes-agent from NousResearch. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | hermes-agent | 0.11.0 | GHSA-wm96-9gfh-vvgq |
| PyPI | hermes-agent | 0.11.0 | PYSEC-2026-2515 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| NousResearch | hermes-agent | 2026.4.02026.4.12026.4.22026.4.32026.4.42026.4.52026.4.62026.4.7 |
Weakness: CWE-265, CWE-264 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-365331 | NousResearch hermes-agent Environment Variable code_execution_tool.py execute_code sandbox vdb-entry, technical-description
- VDB-365331 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #812229 | NousResearch hermes-agent 2026.4.16 Improper Privilege Management (CWE-269) third-party-advisory
- https://gist.github.com/YLChen-007/43c72d19668421abe8ce10f299323a0a exploit