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-33173

CVE-2026-33173: Rails Active Storage Auth Bypass Flaw

CVE-2026-33173 is an authentication bypass flaw in Ruby on Rails Active Storage that allows attackers to upload malicious files by manipulating metadata flags. This article covers technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-33173 Overview

A security vulnerability exists in Ruby on Rails Active Storage that allows attackers to bypass content-type validation during direct file uploads. The DirectUploadsController accepts arbitrary metadata from the client and persists it on the blob without proper filtering. Because internal flags like identified and analyzed are stored in the same metadata hash, a malicious client can manipulate these flags to skip MIME detection and analysis, enabling the upload of arbitrary content while claiming a safe content_type.

Critical Impact

Attackers can upload malicious files (such as executable scripts or malware) while bypassing Active Storage's automatic content type identification, potentially leading to stored XSS, server-side code execution, or distribution of malicious content through trusted Rails applications.

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-33173 published to NVD
  • 2026-03-24 - Last updated in NVD database

Technical Details for CVE-2026-33173

Vulnerability Analysis

This vulnerability stems from improper input validation in the Active Storage component of Ruby on Rails (CWE-925). The DirectUploadsController is designed to handle file uploads directly to cloud storage services, but it fails to filter user-supplied metadata before persisting it to the blob record.

The core issue is that Active Storage stores both user-controllable metadata and internal processing flags (analyzed, identified, composed) within the same metadata hash. When a direct-upload client submits a request with these internal flags pre-set, the application accepts them without validation, effectively telling the system that content-type analysis has already been performed.

This design flaw allows attackers to bypass any server-side validations that rely on Active Storage's automatic content type identification. For example, an attacker could upload a malicious HTML file containing JavaScript while declaring it as image/png, and the validation bypass would prevent the server from correctly identifying the true content type.

Root Cause

The root cause is the lack of separation between user-supplied metadata and internal system flags in the Active Storage blob metadata hash. The DirectUploadsController accepted all metadata parameters from the client without filtering protected internal properties. This architectural oversight allowed external manipulation of internal state flags that should only be set by the server-side analysis process.

Attack Vector

The attack is network-based and requires no authentication or special privileges. An attacker with knowledge of this vulnerability can craft HTTP requests to the direct upload endpoint with manipulated metadata parameters. By including identified: true and analyzed: true in the upload metadata, the attacker instructs Active Storage to skip its content-type detection routines.

The attack flow involves:

  1. Initiating a direct upload request to the Rails application
  2. Including malicious metadata flags (identified, analyzed, composed) set to true
  3. Specifying a benign content_type (e.g., image/png) while uploading malicious content
  4. The server accepts the upload without performing actual MIME detection
  5. The malicious file is stored with the attacker-specified content type
ruby
# Security patch in activestorage/app/models/active_storage/blob.rb
# Source: https://github.com/rails/rails/commit/707c0f1f41f067fdf96d54e99d43b28dfaae7e53

   MINIMUM_TOKEN_LENGTH = 28
 
   has_secure_token :key, length: MINIMUM_TOKEN_LENGTH
+
+  # FIXME: these property should never have been stored in the metadata.
+  # The blob table should be migrated to have dedicated columns for theses.
+  PROTECTED_METADATA = %w(analyzed identified composed)
+  private_constant :PROTECTED_METADATA
   store :metadata, accessors: [ :analyzed, :identified, :composed ], coder: ActiveRecord::Coders::JSON
 
   class_attribute :services, default: {}

Detection Methods for CVE-2026-33173

Indicators of Compromise

  • Direct upload requests containing identified, analyzed, or composed parameters in the metadata payload
  • Files stored with mismatched content types (e.g., executable content stored as images)
  • Unusual patterns in Active Storage blob metadata showing pre-set analysis flags
  • Upload requests with suspicious content-type declarations that don't match file signatures

Detection Strategies

  • Monitor direct upload endpoint (/rails/active_storage/direct_uploads) for requests containing protected metadata fields
  • Implement web application firewall rules to flag requests with identified, analyzed, or composed in JSON payloads
  • Audit existing Active Storage blobs for files where identified: true exists without corresponding analysis timestamps
  • Review application logs for direct upload requests with abnormal metadata structures

Monitoring Recommendations

  • Enable detailed logging for the DirectUploadsController to capture all incoming metadata parameters
  • Set up alerts for file uploads where declared content-type doesn't match actual file signature analysis
  • Monitor for increased direct upload activity that may indicate exploitation attempts
  • Implement integrity monitoring on stored files to detect content-type mismatches

How to Mitigate CVE-2026-33173

Immediate Actions Required

  • Upgrade Ruby on Rails to version 8.1.2.1, 8.0.4.1, or 7.2.3.1 immediately
  • Review existing Active Storage blobs for potentially malicious uploads with pre-set analysis flags
  • Consider temporarily disabling direct uploads if immediate patching is not possible
  • Implement additional server-side content-type validation independent of Active Storage's built-in detection

Patch Information

The Rails team has released security patches across all supported versions. The fix introduces a PROTECTED_METADATA constant that explicitly defines the internal metadata fields (analyzed, identified, composed) and filters them from user-supplied input in the DirectUploadsController.

Patched versions:

  • Rails 8.1.2.1
  • Rails 8.0.4.1
  • Rails 7.2.3.1

For detailed technical information, refer to the GitHub Security Advisory GHSA-qcfx-2mfw-w4cg.

Workarounds

  • Implement a custom controller that filters protected metadata fields before passing to Active Storage
  • Add application-level middleware to strip identified, analyzed, and composed parameters from direct upload requests
  • Deploy content-type verification at the storage layer (e.g., S3 Lambda triggers) to validate files after upload
  • Temporarily restrict direct uploads to authenticated users with additional validation
ruby
# Workaround: Custom DirectUploadsController with metadata filtering
class SecureDirectUploadsController < ActiveStorage::DirectUploadsController
  private

  def blob_args
    params.require(:blob).permit(:filename, :byte_size, :checksum, :content_type, metadata: {}).tap do |args|
      # Filter protected metadata fields
      if args[:metadata]
        args[:metadata] = args[:metadata].except('analyzed', 'identified', 'composed')
      end
    end
  end
end

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechRubyonrails

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-925
  • Technical References
  • GitHub Release v7.2.3.1

  • GitHub Release v8.0.4.1

  • GitHub Release v8.1.2.1
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Commit Changes

  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-qcfx-2mfw-w4cg
  • Related CVEs
  • CVE-2026-33169: Ruby on Rails Active Support DoS Vulnerability

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

  • CVE-2026-33174: Ruby on Rails Active Storage DoS Vulnerability

  • CVE-2026-33195: Ruby on Rails Path Traversal Vulnerability
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