The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7397

CVE-2026-7397: NousResearch hermes-agent Path Traversal

CVE-2026-7397 is a path traversal flaw in NousResearch hermes-agent 0.8.0 that enables symlink following attacks through local exploitation. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-7397 Overview

A security flaw has been discovered in NousResearch hermes-agent 0.8.0. This vulnerability affects the function _check_sensitive_path of the file tools/file_tools.py. The manipulation results in symlink following, allowing attackers to bypass security restrictions intended to protect sensitive system paths. Attacking locally is a requirement. The exploit has been released to the public and may be used for attacks.

Critical Impact

Local attackers can exploit symlink following to write to protected system paths like /private/etc/ on macOS, bypassing the sensitive path check mechanism and potentially modifying critical system configuration files.

Affected Products

  • NousResearch hermes-agent version 0.8.0
  • hermes-agent installations prior to version 0.9.0
  • Systems running macOS with hermes-agent file tools

Discovery Timeline

  • 2026-04-29 - CVE-2026-7397 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-7397

Vulnerability Analysis

This vulnerability is classified as CWE-59 (Improper Link Resolution Before File Access), commonly known as symlink following or symlink attack. The core issue lies in the _check_sensitive_path function within tools/file_tools.py, which fails to properly resolve symbolic links before checking whether a target path is in a protected directory.

On macOS systems, the /etc/ directory is actually a symbolic link to /private/etc/. The original implementation only checked for the /etc/ prefix, allowing an attacker to create a symbolic link that resolves to /private/etc/ or /private/var/ and bypass the path validation entirely. This enables unauthorized writes to critical system configuration files.

Root Cause

The vulnerability stems from an incomplete list of sensitive path prefixes in the _SENSITIVE_PATH_PREFIXES tuple. The original implementation did not account for macOS-specific path structures where critical system directories like /etc/ are symlinks to their canonical locations under /private/. The function _check_sensitive_path would resolve the symlink using os.path.realpath() but then only check against Linux-centric paths, missing the macOS equivalents.

Attack Vector

The attack requires local access to the system where hermes-agent is installed. An attacker with low privileges can exploit this by:

  1. Creating a symbolic link that points to a protected system path
  2. Using the hermes-agent file tools to write through the symlink
  3. The _check_sensitive_path function fails to recognize the resolved path as sensitive
  4. The write operation succeeds, modifying protected system files
python
 
 # Paths that file tools should refuse to write to without going through the
 # terminal tool's approval system.  These match prefixes after os.path.realpath.
-_SENSITIVE_PATH_PREFIXES = ("/etc/", "/boot/", "/usr/lib/systemd/")
+_SENSITIVE_PATH_PREFIXES = (
+    "/etc/", "/boot/", "/usr/lib/systemd/",
+    "/private/etc/", "/private/var/",
+)
 _SENSITIVE_EXACT_PATHS = {"/var/run/docker.sock", "/run/docker.sock"}
 
 

Source: GitHub Commit 311dac1

Detection Methods for CVE-2026-7397

Indicators of Compromise

  • Unexpected modifications to files in /private/etc/ or /private/var/ on macOS systems
  • Suspicious symbolic links created in user-accessible directories pointing to system paths
  • Unusual file tool activity from hermes-agent processes targeting system configuration files
  • Log entries showing file operations on protected paths that bypassed the approval system

Detection Strategies

  • Monitor for symlink creation operations that target system directories like /private/etc/ or /private/var/
  • Implement file integrity monitoring on critical macOS system configuration directories
  • Audit hermes-agent file tool operations for attempts to access paths outside expected working directories
  • Deploy endpoint detection rules to flag symbolic link traversal patterns

Monitoring Recommendations

  • Enable SentinelOne's file monitoring capabilities for /private/etc/ and /private/var/ directories
  • Configure alerts for any process creating symbolic links to sensitive system paths
  • Review hermes-agent logs for file operations that resolve to protected system directories
  • Establish baseline behavior for hermes-agent file tool usage to detect anomalous activity

How to Mitigate CVE-2026-7397

Immediate Actions Required

  • Upgrade NousResearch hermes-agent to version 0.9.0 or later immediately
  • Audit existing hermes-agent installations to identify version 0.8.0 deployments
  • Review system files in /private/etc/ and /private/var/ for unauthorized modifications
  • Temporarily restrict hermes-agent file tool permissions until the patch is applied

Patch Information

The vulnerability is addressed in the patch identified as commit 311dac197145e19e07df68feba2cd55d896a3cd1. The fix expands the _SENSITIVE_PATH_PREFIXES tuple to include macOS-specific paths /private/etc/ and /private/var/, ensuring that symlink resolution properly blocks writes to these protected directories. Upgrading to version 0.9.0 or applying the GitHub Release v2026.4.13 mitigates this issue. For more details, see GitHub Pull Request #8829 and GitHub Issue #8734.

Workarounds

  • Manually patch the _SENSITIVE_PATH_PREFIXES tuple to include /private/etc/ and /private/var/ if immediate upgrade is not possible
  • Restrict local access to systems running vulnerable hermes-agent versions
  • Implement additional file system permissions to prevent the hermes-agent process from writing to system directories
  • Use macOS sandboxing or container isolation to limit the file system scope of hermes-agent operations
bash
# Configuration example
# Verify hermes-agent version and upgrade if necessary
pip show hermes-agent | grep Version
pip install --upgrade hermes-agent>=0.9.0

# Alternatively, apply the specific patched release
pip install hermes-agent==0.9.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechNousresearch

  • SeverityLOW

  • CVSS Score1.9

  • Known ExploitedNo
  • CVSS 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-59
  • Technical References
  • GitHub Repository for Hermes Agent

  • GitHub Commit 311dac1

  • GitHub Issue #8734

  • GitHub Pull Request #8829

  • GitHub Release v2026.4.13

  • VulDB Submission #803270

  • VulDB Vulnerability #360121

  • VulDB CTI for #360121
  • Related CVEs
  • CVE-2026-7112: Hermes-Agent Auth Bypass Vulnerability

  • CVE-2026-7113: Hermes-Agent Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English