CVE-2026-7397

NousResearch hermes-agent file_tools.py _check_sensitive_path symlink

Published Apr 29, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in hermes-agent's _check_sensitive_path allows a local attacker to create a symbolic link that points to a protected file or directory, causing the agent to follow the link and read or write the target. The vulnerability matches CWE‑59 and CWE‑61. If the agent runs with elevated privileges, an attacker can read, modify or delete arbitrary files, leading to data disclosure, integrity compromise, or local privilege escalation.

Affected Systems

The vulnerability affects NousResearch hermes-agent version 0.8.0, specifically the file_tools.py module. No earlier versions are explicitly mentioned, but versions before 0.9.0 are presumed affected until patched. The vendor is NousResearch and the product is hermes-agent.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity, and no EPSS score is available. The vulnerability is not listed in the CISA KEV catalogue, so no known active exploitation is reported. The exploit requires local access. If the agent runs with privileged rights, the flaw could allow local privilege escalation or unrestricted file system access. Mitigation is most effective by applying the vendor’s patch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade hermes-agent to version 0.9.0 or later to apply the vendor-supplied fix.
  • Limit the filesystem permissions available to the hermes-agent process, ensuring it cannot read or modify sensitive directories.
  • Run the hermes-agent with the least privilege required, so that even if a symlink is followed, the attacker’s impact is limited.

Generated by OpenCVE AI on April 30, 2026 at 13:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nousresearch
Nousresearch hermes-agent
Vendors & Products Nousresearch
Nousresearch hermes-agent
Type Values Removed Values Added
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.
Title NousResearch hermes-agent file_tools.py _check_sensitive_path symlink
Weaknesses CWE-59
CWE-61
References
Metrics cvssV2_0

{'score': 3.2, 'vector': 'AV:L/AC:L/Au:S/C:N/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 4.4, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

  • CWE-61

    UNIX Symbolic Link (Symlink) Following

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Apr 30, 2026, 12:47 PM
Reserved
Apr 29, 2026, 10:44 AM
Status
Deferred
Published
Apr 29, 2026, 7:16 PM
Modified
Jun 17, 2026, 11:02 AM