Skip to main content

hermes-agent CVE-2026-9351

| EUVDEUVD-2026-31565 MEDIUM
Path Traversal (CWE-22)
2026-05-24 VulDB GHSA-hjf5-mqw9-9ph9
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed hermes-agent endpoint
  2. Delivery
    Send crafted read_file request with path traversal
  3. Exploit
    Bypass _is_blocked_device validation
  4. Execution
    Access restricted files
  5. Impact
    Modify configuration or disrupt operations

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated exploitation against default configurations of hermes-agent. The CVSS vector (PR:N/UI:N) confirms no authentication or user interaction is required. The specific condition is that the read_file tool component must be enabled and accessible to network requests, which is the default configuration for hermes-agent installations intended to provide file system capabilities. No special deployment modes or non-default settings are required. The vulnerability is limited by the implementation details of _is_blocked_device and the specific operations permitted through the read_file tool, which appear to restrict the impact to integrity and availability (CVSS I:L/A:L) rather than allowing full confidentiality breach, suggesting some implicit constraints on exploitable file operations even after path traversal succeeds.

Impact

The CVSS base score of 6.5 (Medium) reflects network-based exploitation (AV:N) with low complexity (AC:L) requiring no privileges (PR:N) or user interaction (UI:N), but with scope limited to integrity and availability impacts (I:L/A:L) rather than confidentiality breach. The temporal metrics show proof-of-concept exploit exists (E:P) with no official fix (RL:X), elevating real-world risk. Public exploit availability on GitHub significantly lowers the barrier to exploitation. However, the lack of confidentiality impact (C:N) and the limitation to low integrity/availability damage suggests the path traversal may be constrained to specific file operations rather than full arbitrary file read/write. The vendor's non-responsiveness is a critical red flag indicating no patch is forthcoming through official channels. Real-world priority is elevated by the network attack vector and public exploit, but tempered by the limited impact scope. Organizations using hermes-agent for file operations should treat this as high priority; those using it in isolated environments or without file system access can deprioritize.

Exploit ScenarioDerived

An attacker identifies an internet-exposed hermes-agent instance and accesses its read_file tool interface. Using the public exploit code from GitHub (https://gist.github.com/YLChen-007/1d1aeff404cb88e06ec2fb3377f49fef), they craft file path requests containing directory traversal sequences to bypass the _is_blocked_device validation. This allows manipulation of files outside the intended agent workspace, potentially modifying configuration files or disrupting file-based operations, resulting in integrity violations or service availability degradation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 24, 2026

Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass path restrictions and modify or disrupt file operations via the read_file tool. The flaw exists in the _is_blocked_device function within tools/file_tools.py. Public exploit code is available (EPSS data not provided, but exploit confirmed). Vendor was notified but did not respond, suggesting no official patch exists at time of analysis.

RemediationAI

No official vendor patch exists as NousResearch did not respond to vulnerability disclosure. Organizations must implement compensating controls: First, restrict network access to hermes-agent instances to trusted IP ranges only, preventing remote exploitation (trade-off: reduces agent accessibility for legitimate remote users). Second, implement application-level path validation by wrapping or modifying the read_file tool to enforce strict allowlists of permitted directories and reject any path containing traversal sequences like '../', './', or absolute paths (trade-off: may break legitimate use cases requiring broader file access). Third, run hermes-agent processes under least-privilege accounts with chroot jails or containerization to limit file system exposure even if path traversal succeeds (trade-off: increased deployment complexity). Fourth, monitor for suspicious file access patterns in application logs. Community forks or patches may emerge given the public exploit; monitor the GitHub repository at https://github.com/NousResearch/hermes-agent for community-driven fixes. Consider migrating to alternative AI agent frameworks with active security maintenance if vendor responsiveness remains absent.

Affected VersionsENISA

hermes-agent 2026.4.13
hermes-agent 2026.4.14
hermes-agent 2026.4.6
hermes-agent 2026.4.10
hermes-agent 2026.4.1
hermes-agent 2026.4.5
hermes-agent 2026.4.11
hermes-agent 2026.4.15
hermes-agent 2026.4.2
hermes-agent 2026.4.16
hermes-agent 2026.4.7
hermes-agent 2026.4.3
hermes-agent 2026.4.9
hermes-agent 2026.4.12
hermes-agent 2026.4.0
hermes-agent 2026.4.8
hermes-agent 2026.4.4

Affected Packages

euvd hermes_agent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability stems from improper validation in the _is_blocked_device function of the file_tools.py module, which is part of the read_file tool component. This is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) flaw. The function fails to adequately sanitize or validate file paths before processing, allowing attackers to use directory traversal sequences (e.g., '../') to access or manipulate files outside intended boundaries. The affected product is an AI agent framework (hermes-agent by NousResearch) that provides file system interaction capabilities, making path traversal particularly dangerous as it exposes the underlying system through the agent's file operations.

Know when Hermes Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 26, 2026 - 19:52 NVD
6.5 (MEDIUM) 5.5 (MEDIUM)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 75% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2026-71963 HIGH POC
8.6 Sep 03

Remote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary

CVE-2026-9367 MEDIUM POC
5.5 May 24

Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands

CVE-2026-14628 MEDIUM POC
5.5 Jul 04

Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the

CVE-2026-9368 MEDIUM POC
5.5 May 24

Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula

CVE-2026-7396 MEDIUM POC
5.5 Apr 29

Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker

CVE-2026-10221 MEDIUM POC
5.5 Jun 01

Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp

CVE-2026-10220 MEDIUM POC
5.5 Jun 01

Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t

CVE-2026-9366 MEDIUM POC
5.5 May 24

Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi

CVE-2026-10224 MEDIUM POC
5.5 Jun 01

Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy