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
    • 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-33195

CVE-2026-33195: Ruby on Rails Path Traversal Vulnerability

CVE-2026-33195 is a path traversal flaw in Ruby on Rails Active Storage that allows attackers to access arbitrary files on the server. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-33195 Overview

CVE-2026-33195 is a path traversal vulnerability in Ruby on Rails Active Storage component that allows attackers to read, write, or delete arbitrary files on the server. Active Storage's DiskService#path_for method fails to validate that the resolved filesystem path remains within the storage root directory, enabling exploitation when blob keys containing path traversal sequences (e.g., ../) are processed.

Critical Impact

This vulnerability enables unauthorized file system access that could lead to complete server compromise through arbitrary file read, write, or deletion operations.

Affected Products

  • Ruby on Rails versions prior to 8.1.2.1
  • Ruby on Rails versions prior to 8.0.4.1
  • Ruby on Rails versions prior to 7.2.3.1

Discovery Timeline

  • 2026-03-24 - CVE CVE-2026-33195 published to NVD
  • 2026-03-24 - Last updated in NVD database

Technical Details for CVE-2026-33195

Vulnerability Analysis

The vulnerability resides in Active Storage's disk service implementation, specifically within the DiskService#path_for method. This method is responsible for resolving file system paths based on blob keys provided by the application. The core issue is a lack of input validation that should ensure the resolved path remains confined within the designated storage root directory.

When a blob key containing directory traversal sequences such as ../ is passed to this method, the path resolution logic follows these sequences literally, allowing the resolved path to escape the intended storage directory. This creates a classic directory traversal vulnerability (CWE-22) that can be exploited to access, modify, or remove files anywhere on the filesystem that the Rails application process has permissions to access.

While blob keys are typically expected to be trusted strings generated internally by the application, the vulnerability becomes exploitable when applications pass user-controllable input directly as blob keys without proper sanitization.

Root Cause

The root cause is insufficient input validation in the DiskService#path_for method. The method does not perform path canonicalization or boundary checking to ensure that the final resolved path stays within the configured storage root directory. This violates the principle of defense in depth, as the method implicitly trusts that all blob keys are safe, without enforcing this assumption programmatically.

Attack Vector

An attacker can exploit this vulnerability through a network-accessible vector by manipulating blob keys in requests to a Rails application using Active Storage with disk service storage. The attack requires no authentication or user interaction, making it highly accessible for exploitation.

The exploitation scenario involves an attacker crafting a malicious blob key containing path traversal sequences, then sending this key to an endpoint that processes blob operations. The vulnerable path_for method resolves the malicious key to a path outside the storage root, allowing the attacker to:

  • Read sensitive files: Access configuration files containing database credentials, API keys, or other secrets
  • Write arbitrary files: Plant backdoors, modify application code, or corrupt data
  • Delete critical files: Remove system files or application data causing denial of service or data loss

Since no verified proof-of-concept code is available, administrators should refer to the GitHub Security Advisory GHSA-9xrj-h377-fr87 for technical details on the vulnerability mechanics.

Detection Methods for CVE-2026-33195

Indicators of Compromise

  • Unexpected file access attempts outside the Active Storage root directory in application logs
  • Presence of path traversal sequences (../, ..%2f, ..%5c) in blob key parameters within HTTP requests
  • Unusual file system access patterns by the Rails application process

Detection Strategies

  • Monitor web application logs for requests containing path traversal patterns in blob-related parameters
  • Implement file integrity monitoring (FIM) on critical system files and directories to detect unauthorized access or modifications
  • Deploy web application firewall (WAF) rules to block requests containing common path traversal sequences

Monitoring Recommendations

  • Enable verbose logging for Active Storage operations to capture all blob key access attempts
  • Configure security information and event management (SIEM) alerts for file access anomalies from the Rails application process
  • Regularly audit application code for instances where user input may be passed directly to blob key parameters

How to Mitigate CVE-2026-33195

Immediate Actions Required

  • Upgrade Ruby on Rails to a patched version: 8.1.2.1, 8.0.4.1, or 7.2.3.1 depending on your current major version
  • Audit application code for any instances where user input is passed directly as blob keys to Active Storage
  • Implement input validation at the application layer to reject blob keys containing path traversal sequences

Patch Information

The Rails team has released patched versions addressing this vulnerability. Organizations should upgrade to one of the following versions based on their current Rails version:

  • For Rails 8.1.x: Upgrade to version 8.1.2.1
  • For Rails 8.0.x: Upgrade to version 8.0.4.1
  • For Rails 7.2.x: Upgrade to version 7.2.3.1

Specific patch commits are available for review:

  • Commit 4933c1e3b8c1bb04925d60347be9f69270392f2c
  • Commit 9b06fbc0f504b8afe333f33d19548f3b85fbe655
  • Commit a290c8a1ec189d793aa6d7f2570b6a763f675348

Workarounds

  • Implement application-level validation to sanitize blob keys and reject any containing path traversal sequences before passing to Active Storage
  • Consider switching to cloud-based storage services (S3, Azure, GCS) which are not affected by this local disk path traversal
  • Apply strict file system permissions to limit the Rails application process's access to only necessary directories
bash
# Example: Restrict Rails application directory permissions
chmod -R 750 /var/www/myapp/storage
chown -R rails:rails /var/www/myapp/storage

# Example: Update Gemfile to patched version
# In your Gemfile, update the rails gem:
# gem 'rails', '~> 8.1.2.1'
# Then run:
bundle update rails

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechRubyonrails

  • SeverityHIGH

  • CVSS Score8.0

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/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 Rails Release v7.2.3.1

  • GitHub Rails Release v8.0.4.1

  • GitHub Rails Release v8.1.2.1
  • Vendor Resources
  • GitHub Rails Commit Update

  • GitHub Rails Commit Update

  • GitHub Rails Commit Update

  • GitHub Security Advisory GHSA-9xrj-h377-fr87
  • Related CVEs
  • CVE-2026-33202: Rails Active Storage Path Traversal Flaw

  • CVE-2026-33169: Ruby on Rails Active Support DoS Vulnerability

  • CVE-2026-33170: Ruby on Rails Active Support XSS Vulnerability

  • CVE-2026-33173: Rails Active Storage Auth Bypass Flaw
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