A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-22677

CVE-2026-22677: Hermes WebUI Path Traversal Vulnerability

CVE-2026-22677 is a path traversal vulnerability in Hermes WebUI that allows authenticated attackers to read arbitrary files through crafted session imports. This article covers the technical details, affected versions, and mitigation.

Published: May 14, 2026

CVE-2026-22677 Overview

CVE-2026-22677 is a path traversal vulnerability [CWE-22] in Hermes WebUI versions prior to 0.51.44. The flaw resides in the session import endpoint, which fails to validate the workspace field within imported session files. An authenticated attacker can supply a blocked filesystem root as the workspace value, then issue subsequent requests to the session file API using relative paths. This bypass allows the attacker to read any file accessible to the Hermes WebUI process. The vulnerability requires valid authentication and network access to the WebUI interface.

Critical Impact

Authenticated attackers can read arbitrary files on the host filesystem, including configuration files, credentials, and session state, limited only by the permissions of the Hermes WebUI process.

Affected Products

  • Hermes WebUI versions prior to 0.51.44
  • Hermes WebUI session import endpoint
  • Hermes WebUI session file API

Discovery Timeline

  • 2026-05-13 - CVE-2026-22677 published to the National Vulnerability Database (NVD)
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-22677

Vulnerability Analysis

The vulnerability exists in how Hermes WebUI processes imported session data. The session import endpoint accepts a workspace value without enforcing an allowlist of permitted filesystem roots. After importing a session with a maliciously crafted workspace value, the attacker uses the session file API to request files relative to that workspace. Because the workspace root is unrestricted, relative path segments resolve to arbitrary filesystem locations. The result is read access to files outside the intended session boundary.

Root Cause

The root cause is insufficient input validation on the workspace field of session import payloads. The application trusts the caller-supplied path and uses it as a base directory for subsequent file resolution. No canonicalization or root containment check is applied before joining user-supplied relative paths to the workspace root. This is a textbook [CWE-22] path traversal pattern, where the boundary between user input and filesystem operations is not enforced.

Attack Vector

An authenticated user issues a POST request to the session import endpoint with a session object whose workspace points to a sensitive directory such as / or /etc. The server stores the session with that workspace value. The attacker then calls the session file API with relative path segments such as passwd or shadow, which the server resolves against the malicious workspace and returns to the caller. The attack requires only standard user privileges on the WebUI and proceeds entirely over the network.

The upstream patch updates default state directory handling in .env.example and tightens model loading logic in api/providers.py:

text
# Port to listen on (default: 8787)
# HERMES_WEBUI_PORT=8787

-# Where to store sessions, workspaces, and other state (default: ~/.hermes/webui-mvp)
+# Where to store sessions, workspaces, and other state (default: ~/.hermes/webui)
# HERMES_WEBUI_STATE_DIR=~/.hermes/webui

# Default workspace directory shown on first launch

Source: GitHub Commit f00cb74

Detection Methods for CVE-2026-22677

Indicators of Compromise

  • Session import requests containing workspace values pointing to filesystem roots such as /, /etc, /root, C:\, or other directories outside the expected Hermes state directory.
  • Session file API requests using traversal sequences or relative paths that resolve to sensitive files like passwd, shadow, id_rsa, or .env.
  • Unusual file read patterns in Hermes WebUI logs targeting files unrelated to the user's normal session activity.

Detection Strategies

  • Inspect Hermes WebUI access logs for POST requests to the session import endpoint with abnormal workspace values.
  • Correlate session import events with subsequent session file API reads to identify file access outside the expected workspace tree.
  • Alert on Hermes WebUI process reads of files owned by other users or located in system directories.

Monitoring Recommendations

  • Forward Hermes WebUI application logs and host filesystem audit events to a centralized analytics platform for correlation.
  • Baseline normal workspace directory paths used by legitimate users and flag deviations.
  • Monitor the parent process of Hermes WebUI for unexpected file opens against /etc, user home directories, and credential stores.

How to Mitigate CVE-2026-22677

Immediate Actions Required

  • Upgrade Hermes WebUI to version 0.51.44 or later, which contains the official fix referenced in Pull Request #2048.
  • Audit existing stored sessions for workspace values that point outside the intended Hermes state directory and remove any malicious entries.
  • Rotate any credentials, tokens, or secrets that may have resided in files readable by the Hermes WebUI process.

Patch Information

The fix is included in Hermes WebUI Release v0.51.44. Patch details are available in GitHub Commit f00cb74 and the corresponding VulnCheck Advisory. The patch tightens workspace handling and adjusts default state directory configuration.

Workarounds

  • Restrict network access to Hermes WebUI to trusted users until the patch is applied.
  • Run Hermes WebUI under a dedicated low-privilege account with read access only to its intended state directory.
  • Apply filesystem-level access controls or a mandatory access control profile that confines the WebUI process to its working directory.
bash
# Example: run Hermes WebUI as a confined service account
sudo useradd --system --home /var/lib/hermes --shell /usr/sbin/nologin hermes
sudo install -d -o hermes -g hermes -m 0750 /var/lib/hermes/webui
export HERMES_WEBUI_STATE_DIR=/var/lib/hermes/webui
sudo -u hermes hermes-webui

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechHermes

  • SeverityMEDIUM

  • CVSS Score6.0

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/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
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Details

  • GitHub Pull Request

  • GitHub Release v0.51.44

  • VulnCheck Advisory on Path Traversal
  • Related CVEs
  • CVE-2026-6832: Hermes WebUI Path Traversal Vulnerability

  • CVE-2026-22798: HERMES Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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