CVE-2026-7397 NousResearch hermes-agent file_tools.py _check_sensitive_path symlink

Medium 4.8 Published Updated

Local attackers can bypass path restrictions via symlink following in file tools, potentially accessing or modifying sensitive files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-7397?

CVE-2026-7397 is a medium-severity path traversal vulnerability in NousResearch hermes-agent, published on 29 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A security flaw has been discovered in NousResearch hermes-agent 0.8.0. This affects the function _check_sensitive_path of the file tools/file_tools.py. The manipulation results in symlink following. Attacking locally is a requirement. The exploit has been released to the public and may be used for attacks. Upgrading to version 0.9.0 is able to mitigate this issue. The patch is identified as 311dac197145e19e07df68feba2cd55d896a3cd1. Upgrading the affected component is recommended.

Weakness: CWE-61, CWE-59

Which versions are affected by CVE-2026-7397?

How do I fix CVE-2026-7397?

No fix has been published for CVE-2026-7397 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-7397 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-7397 exists.

Sources

Also known as GHSA-g8j6-2v57-f5wp.

Is CVE-2026-7397 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free