Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-22860

CVE-2026-22860: Rack Path Traversal Vulnerability

CVE-2026-22860 is a path traversal vulnerability in Rack's modular Ruby web server interface that allows attackers to escape configured directories and list files outside intended roots. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 20, 2026

CVE-2026-22860 Overview

CVE-2026-22860 is a Directory Traversal vulnerability in Rack, a modular Ruby web server interface. The vulnerability exists in Rack::Directory's path validation mechanism, which uses a string prefix match on the expanded path instead of proper path containment verification. This flaw allows attackers to craft malicious requests that escape the configured root directory and access files outside the intended scope.

Critical Impact

Attackers can list and access directories outside the configured root path, potentially exposing sensitive system files and configuration data to unauthorized parties.

Affected Products

  • Rack versions prior to 2.2.22
  • Rack versions 3.0.0 through 3.1.19
  • Rack versions 3.2.0 through 3.2.4

Discovery Timeline

  • 2026-02-18 - CVE-2026-22860 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2026-22860

Vulnerability Analysis

This Directory Traversal vulnerability (CWE-22) stems from an improper path validation implementation in the Rack::Directory component. When processing directory listing requests, the application expands the requested path and validates it against the configured root directory using a simple string prefix match. This approach is fundamentally flawed because it allows paths that merely start with the root string to pass validation, even if they actually reference locations outside the intended directory structure.

The vulnerability is exploitable over the network without authentication, meaning any remote attacker can potentially access directory listings outside the configured root. The confidentiality impact is significant as sensitive files and directory structures may be exposed, though the vulnerability does not directly allow modification or deletion of files.

Root Cause

The root cause lies in the use of string prefix matching for path validation in Rack::Directory. When a request path is received, it's expanded to its canonical form, but the subsequent validation only checks if this expanded path starts with the root directory string. This approach fails to account for cases where a crafted path like /../root_example/ can be constructed to satisfy the prefix check while actually pointing to a location outside the intended root directory.

Attack Vector

An attacker can exploit this vulnerability by sending specially crafted HTTP requests to a Rack application that uses Rack::Directory for serving directory listings. By constructing a path that includes directory traversal sequences (such as /../) combined with a directory name that begins with the root path string, the attacker can bypass the path validation check.

For example, if the configured root is /var/www/public, a request path crafted to expand to something like /var/www/public_backup/../../sensitive_data/ might pass the string prefix check while actually pointing outside the intended directory. The attacker would receive directory listings for locations they should not have access to.

The attack can be executed remotely over the network, requires no authentication or user interaction, and has low complexity to exploit. Technical details and the security fix can be found in the GitHub Security Advisory.

Detection Methods for CVE-2026-22860

Indicators of Compromise

  • HTTP requests containing directory traversal sequences (../, ..%2f, ..%5c) targeting Rack applications
  • Unusual directory listing requests with paths that include the root directory name followed by escape sequences
  • Web server access logs showing requests to paths outside normal application directories
  • Multiple sequential requests probing various directory paths from the same source

Detection Strategies

  • Monitor web application logs for requests containing path traversal patterns (/../, /..%2f/)
  • Implement Web Application Firewall (WAF) rules to detect and block directory traversal attempts
  • Review application configurations to identify deployments using Rack::Directory middleware
  • Scan Ruby application dependencies to identify vulnerable Rack versions

Monitoring Recommendations

  • Configure alerting for unusual file system access patterns from web server processes
  • Implement log analysis to detect path traversal attempt patterns in HTTP request logs
  • Monitor for unexpected directory enumeration activity in network traffic
  • Deploy SentinelOne Singularity Platform for real-time detection of exploitation attempts and suspicious file access patterns

How to Mitigate CVE-2026-22860

Immediate Actions Required

  • Upgrade Rack to version 2.2.22, 3.1.20, or 3.2.5 depending on your current major version
  • Review application configurations to identify all instances of Rack::Directory usage
  • Audit web server access logs for any signs of prior exploitation attempts
  • Consider temporarily disabling Rack::Directory if immediate patching is not possible

Patch Information

The Rack maintainers have released patched versions that address this vulnerability by implementing proper path containment checking instead of string prefix matching. The fix is available in versions 2.2.22, 3.1.20, and 3.2.5.

Update your Gemfile to specify a patched version:

For Rack 2.x: gem 'rack', '>= 2.2.22'
For Rack 3.1.x: gem 'rack', '>= 3.1.20'
For Rack 3.2.x: gem 'rack', '>= 3.2.5'

The specific commit implementing the fix can be reviewed in the GitHub repository.

Workarounds

  • If upgrading is not immediately possible, consider disabling Rack::Directory middleware entirely
  • Implement a reverse proxy (such as nginx or Apache) in front of the application with strict path validation rules
  • Use WAF rules to block requests containing directory traversal patterns
  • Restrict network access to the vulnerable application to trusted sources only
bash
# Example: Update Rack gem to patched version
bundle update rack
# Verify installed version
bundle show rack
# Expected output should show 2.2.22, 3.1.20, or 3.2.5 or later

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechRack

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34830: Rack Path Traversal Vulnerability

  • CVE-2025-27610: Rack Path Traversal Vulnerability

  • CVE-2026-39324: Rack::Session Auth Bypass Vulnerability

  • CVE-2026-34835: Rack 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