CVE-2026-9351 NousResearch hermes-agent read_file Tool file_tools.py _is_blocked_device path traversal
Remote attackers can exploit a path traversal flaw in the read_file tool to access unauthorized files within the NousResearch hermes-agent library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-9351?
CVE-2026-9351 is a medium-severity path traversal vulnerability in NousResearch hermes-agent, published on 24 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A security flaw has been discovered in NousResearch hermes-agent up to 2026.4.16. This vulnerability affects the function _is_blocked_device of the file tools/file_tools.py of the component read_file Tool. Performing a manipulation results in path traversal. The attack may be initiated remotely. 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-9351?
How do I fix CVE-2026-9351?
No fix has been published for CVE-2026-9351 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-9351 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-9351 exists.
Sources
Also known as GHSA-hjf5-mqw9-9ph9.