# CVE-2026-10222: NousResearch hermes-agent config.py _sanitize_env_lines injection

- Severity: Medium 6.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:H/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.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-01T04:00:11.313Z
- Modified: 2026-07-28T19:15:31.806Z
- Also known as: GHSA-mv8x-fg99-32mf, PYSEC-2026-2513
- Weaknesses: CWE-74, CWE-707
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A security flaw has been discovered in NousResearch hermes-agent up to 2026.4.30. Affected by this issue is the function _sanitize_env_lines of the file hermes_cli/config.py. The manipulation results in injection. It is possible to launch the attack remotely. The attack requires a high level of complexity. The exploitation is known to be difficult. The exploit has been released to the public and may be used for attacks. 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 19 more
- hermes-agent (PyPI): before 0.18.0

## Every score

- VulDB: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 5.6 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 5.6 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:H/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 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/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/7ee2eeaa383b3540d2e8854250c03fb0> (exploit, web)
- <https://vuldb.com/vuln/367501> (technical-description, vdb-entry, web)
- <https://vuldb.com/vuln/367501/cti> (permissions-required, signature, web)
- <https://vuldb.com/cve/CVE-2026-10222> (third-party-advisory, web)
- <https://vuldb.com/submit/822020> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-10222> (advisory)
- <https://github.com/NousResearch/hermes-agent/commit/b944c6e821c2177eac6da857c99ff24566aa56b0> (web)
- <https://github.com/NousResearch/hermes-agent> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/hermes-agent/PYSEC-2026-2513.yaml> (web)
- <https://pypi.org/project/hermes-agent> (package)
- <https://github.com/advisories/GHSA-mv8x-fg99-32mf> (advisory)

## Sources

- CVE List: [CVE-2026-10222](https://www.cve.org/CVERecord?id=CVE-2026-10222), CVE Terms of Use, modified 2026-06-01
- GitHub Advisory Database: [GHSA-mv8x-fg99-32mf](https://github.com/advisories/GHSA-mv8x-fg99-32mf), CC-BY-4.0, modified 2026-07-28
- NVD: [CVE-2026-10222](https://nvd.nist.gov/vuln/detail/CVE-2026-10222), Public domain, modified 2026-07-22
- PyPA Advisory Database: [PYSEC-2026-2513](https://osv.dev/vulnerability/PYSEC-2026-2513), CC-BY-4.0, modified 2026-07-13

---

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