6.3medium
NousResearch hermes-agent config.py _sanitize_env_lines injection
- Severity
- 6.3medium CVSS:4.0 by VulDB
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
- Also known as
- GHSA-mv8x-fg99-32mfPYSEC-2026-2513
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 23 more | CVE List |
| hermes-agent (PyPI) | before 0.18.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| VulDB | 6.3medium 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 |
| VulDB | 5.6medium CVSS:3.1 | 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 | 5.6medium CVSS:3.0 | 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 | 5.1medium CVSS:2.0 | AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR |
| GitHub | 5.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | low 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 |
| PyPA Advisory Database | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| PyPA Advisory Database | Not scored 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 |
Classification
What each source says
CVE List
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.
NVD (es)
Una falla de seguridad ha sido descubierta en NousResearch hermes-agent hasta 2026.4.30. Afectada por este problema es la función _sanitize_env_lines del archivo hermes_cli/config.py. La manipulación resulta en inyección. Es posible lanzar el ataque remotamente. El ataque requiere un alto nivel de complejidad. La explotación se sabe que es difícil. El exploit ha sido publicado al público y puede ser utilizado para ataques. El proveedor fue contactado tempranamente sobre esta divulgación pero no respondió de ninguna manera.
References
| 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://gist.github.com/YLChen-007/7ee2eeaa383b3540d2e8854250c03fb0 | exploit, 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10222 changed 2026-06-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mv8x-fg99-32mf changed 2026-07-28 | CC-BY-4.0 |
| NVD | CVE-2026-10222 changed 2026-07-22 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2513 changed 2026-07-13 | CC-BY-4.0 |