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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-24T08:45:09.083Z
- Modified: 2026-07-23T11:10:00.120Z
- Also known as: GHSA-wm96-9gfh-vvgq, PYSEC-2026-2515
- Weaknesses: CWE-264, CWE-265, CWE-269, CWE-526
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- NousResearch hermes-agent: 2026.4.0; 2026.4.1; 2026.4.2; 2026.4.3; 2026.4.4; 2026.4.5; 2026.4.6; 2026.4.7; 2026.4.8; 2026.4.9; 2026.4.10; 2026.4.11; and 5 more
- hermes-agent (PyPI): before 0.11.0

## Every score

- VulDB: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 7.3 High `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`
- VulDB: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 7.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://gist.github.com/YLChen-007/43c72d19668421abe8ce10f299323a0a> (exploit, web)
- <https://vuldb.com/vuln/365331> (technical-description, vdb-entry, web)
- <https://vuldb.com/vuln/365331/cti> (permissions-required, signature, web)
- <https://vuldb.com/submit/812229> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-9368> (advisory)
- <https://github.com/NousResearch/hermes-agent/commit/285bb2b9150b93445e5eded9bc897a4001b66e55> (web)
- <https://github.com/NousResearch/hermes-agent> (package)
- <https://pypi.org/project/hermes-agent> (package)
- <https://github.com/advisories/GHSA-wm96-9gfh-vvgq> (advisory)

## Sources

- CVE List: [CVE-2026-9368](https://www.cve.org/CVERecord?id=CVE-2026-9368), CVE Terms of Use, modified 2026-05-26
- GitHub Advisory Database: [GHSA-wm96-9gfh-vvgq](https://github.com/advisories/GHSA-wm96-9gfh-vvgq), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-9368](https://nvd.nist.gov/vuln/detail/CVE-2026-9368), Public domain, modified 2026-07-23
- PyPA Advisory Database: [PYSEC-2026-2515](https://osv.dev/vulnerability/PYSEC-2026-2515), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-9368 · Whole record: https://cve.day/CVE-2026-9368.json · Rebuilt by cve.day 2026-11-25T22:59:22.235Z
