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-2025-25293

CVE-2025-25293: Omniauth SAML DoS Vulnerability

CVE-2025-25293 is a Denial of Service flaw in ruby-saml that allows attackers to bypass message size checks using compressed SAML responses. This post covers the technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-25293 Overview

CVE-2025-25293 is a Denial of Service (DoS) vulnerability affecting the ruby-saml library, a widely-used Ruby implementation for Security Assertion Markup Language (SAML) single sign-on (SSO) authentication. The vulnerability exists in how ruby-saml handles compressed SAML responses using zlib decompression. Prior to versions 1.12.4 and 1.18.0, attackers can bypass the message size validation check by sending specially crafted compressed SAML responses that expand to excessively large payloads after decompression.

Critical Impact

Remote attackers can cause Denial of Service by exploiting the message size check bypass with compressed SAML responses, potentially disrupting authentication services for applications relying on ruby-saml for SSO.

Affected Products

  • onelogin ruby-saml (versions prior to 1.12.4 and 1.18.0)
  • omniauth omniauth_saml
  • GitLab (addressed in patch release 17.9.2)

Discovery Timeline

  • 2025-03-12 - CVE-2025-25293 published to NVD
  • 2025-03-12 - GitLab releases patch in version 17.9.2
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-25293

Vulnerability Analysis

The vulnerability stems from improper input validation (CWE-400: Uncontrolled Resource Consumption) in the SAML message processing flow. When ruby-saml receives a compressed SAML response, it performs message size validation before decompression rather than after. This ordering flaw creates a security gap where an attacker can craft a small compressed payload that passes the initial size check but expands to an extremely large message upon inflation.

The flaw affects the decode_raw_saml method in lib/onelogin/ruby-saml/saml_message.rb, which processes incoming SAML messages in HTTP-redirect binding scenarios. By exploiting compression algorithms' ability to achieve high compression ratios, an attacker can send payloads that consume excessive memory and CPU resources when decompressed, leading to service degradation or complete denial of service.

Root Cause

The root cause is the incorrect placement of the message size validation check in the SAML response processing pipeline. The original implementation checked the message size before calling the inflate() function to decompress the payload. This meant that a highly compressed malicious payload could easily pass the size check while still expanding to a resource-exhausting size after decompression. The vulnerability represents a classic decompression bomb (zip bomb) attack vector applied to SAML authentication flows.

Attack Vector

This vulnerability is exploitable remotely over the network without requiring authentication or user interaction. An attacker can send specially crafted compressed SAML responses to any application using vulnerable versions of ruby-saml. The attack does not require any privileges and can be launched against publicly accessible SAML endpoints.

The attack flow involves:

  1. Crafting a SAML response that compresses to a small size but decompresses to an extremely large payload
  2. Sending the compressed response to the target application's SAML endpoint
  3. The application passes the pre-decompression size check
  4. Upon decompression, the expanded message consumes excessive system resources
  5. Service degradation or denial occurs as resources are exhausted
ruby
# Security patch from ruby-saml (v1.18.0 branch)
# Source: https://github.com/SAML-Toolkits/ruby-saml/commit/e2da4c6dae7dc01a4d9cd221395140a67e2b3eb1

        decoded = decode(saml)
        begin
-          inflate(decoded)
+            message = inflate(decoded)
        rescue
-          decoded
+            message = decoded
        end

+        if message.bytesize > MAX_BYTE_SIZE
+          raise ValidationError.new("Encoded SAML Message exceeds " + MAX_BYTE_SIZE.to_s + " bytes, so was rejected")
+        end
+
+        message
      end

      # Deflate, base64 encode and url-encode a SAML Message (To be used in the HTTP-redirect binding)

Detection Methods for CVE-2025-25293

Indicators of Compromise

  • Unusually high memory consumption on servers processing SAML authentication requests
  • Spike in CPU utilization correlated with SAML endpoint traffic
  • Application crashes or timeouts during SAML response processing
  • Large volume of SAML requests from suspicious or unknown sources

Detection Strategies

  • Monitor ruby-saml library versions in your application dependencies using software composition analysis (SCA) tools
  • Implement application performance monitoring (APM) to detect resource exhaustion patterns on SAML endpoints
  • Configure web application firewalls (WAF) to inspect and limit the size of compressed payloads in SAML responses
  • Deploy intrusion detection systems (IDS) with rules to identify decompression bomb patterns

Monitoring Recommendations

  • Set up alerts for abnormal memory growth patterns on authentication servers
  • Monitor SAML endpoint response times for sudden degradation
  • Track the ratio of compressed to decompressed payload sizes in SAML traffic
  • Implement logging for SAML message processing failures and exceptions

How to Mitigate CVE-2025-25293

Immediate Actions Required

  • Upgrade ruby-saml to version 1.12.4 or 1.18.0 or later immediately
  • Update omniauth-saml to a version that uses the patched ruby-saml dependency
  • For GitLab deployments, upgrade to version 17.9.2 or later
  • Audit all applications using ruby-saml to identify vulnerable instances
  • Consider implementing rate limiting on SAML endpoints as a temporary measure

Patch Information

The vulnerability has been addressed in ruby-saml versions 1.12.4 and 1.18.0. The fix moves the message size validation check to occur after decompression, ensuring that expanded payloads exceeding the configured maximum size are properly rejected. Security patches are available via the Ruby SAML Security Advisory GHSA-92rq-c8cf-prrq and OmniAuth SAML Security Advisory GHSA-hw46-3hmr-x9xv. Additional vendor-specific patches are available from GitLab Patch Release 17.9.2, Debian LTS, and NetApp Security Advisory.

Workarounds

  • Implement network-level filtering to limit the size of incoming SAML requests before they reach the application
  • Deploy a reverse proxy with payload size limits to reject oversized compressed content
  • If possible, disable compressed SAML response handling temporarily until patching is complete
  • Implement resource limits (memory and CPU) on application containers to prevent complete system exhaustion
bash
# Example: Update ruby-saml gem to patched version
bundle update ruby-saml --conservative

# Verify the installed version
bundle show ruby-saml
# Should show version >= 1.12.4 or >= 1.18.0

# For Gemfile, ensure minimum version constraint:
# gem 'ruby-saml', '>= 1.18.0'

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechOmniauth

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability2.70%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Security Blog Post

  • Ruby SAML Release v1.12.4

  • Ruby SAML Release v1.18.0

  • GitHub Security Lab Advisory GHSL-2024-355

  • Debian LTS Announcement

  • NetApp Security Advisory ntap-20250314-0008
  • Vendor Resources
  • GitLab Patch Release 17.9.2

  • Ruby SAML Commit Update

  • Ruby SAML Commit Update

  • Ruby SAML Security Advisory GHSA-92rq-c8cf-prrq

  • OmniAuth SAML Security Advisory GHSA-hw46-3hmr-x9xv
  • Related CVEs
  • CVE-2025-25292: Omniauth SAML Auth Bypass Vulnerability

  • CVE-2025-25291: Omniauth SAML Auth Bypass Vulnerability

  • CVE-2024-21632: Omniauth Microsoft Graph Auth Bypass Flaw
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