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

CVE-2025-66568: Onelogin Ruby-saml Auth Bypass Flaw

CVE-2025-66568 is an authentication bypass flaw in Onelogin Ruby-saml that enables signature wrapping attacks via libxml2 canonicalization. This post covers the technical details, affected versions, impact, and mitigation.

Published: March 24, 2026

CVE-2025-66568 Overview

CVE-2025-66568 is a critical authentication bypass vulnerability in the ruby-saml library, which implements the client side of SAML authorization. The vulnerability exists in versions up to and including 1.12.4, where attackers can exploit the libxml2 canonicalization process used by Nokogiri for document transformation to execute a Signature Wrapping attack.

When libxml2's canonicalization is invoked on invalid XML input, it may return an empty string rather than a canonicalized node. The ruby-saml library then incorrectly proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded. This allows attackers to bypass SAML authentication mechanisms entirely.

Critical Impact

This authentication bypass vulnerability allows attackers to forge SAML assertions and gain unauthorized access to applications protected by SAML-based single sign-on (SSO), potentially compromising entire enterprise identity systems.

Affected Products

  • onelogin ruby-saml versions up to and including 1.12.4
  • Applications using vulnerable ruby-saml versions for SAML authentication
  • Enterprise SSO systems relying on the affected library

Discovery Timeline

  • 2025-12-09 - CVE-2025-66568 published to NVD
  • 2025-12-10 - Last updated in NVD database

Technical Details for CVE-2025-66568

Vulnerability Analysis

This vulnerability is classified as CWE-347 (Improper Verification of Cryptographic Signature), representing a fundamental flaw in how the ruby-saml library processes SAML assertions. The issue stems from the library's trust in the canonicalization output from libxml2 without proper validation.

SAML authentication relies on XML digital signatures to verify the authenticity and integrity of assertions. The canonicalization process ensures that XML documents are transformed into a standard form before signature computation or verification. When this process fails silently by returning an empty string, the library proceeds with signature verification against incorrect data, creating an exploitable condition.

The attack surface is network-accessible, requires no authentication, and can be executed without user interaction. Successful exploitation results in complete bypass of authentication controls, allowing attackers to impersonate any user within the SAML federation.

Root Cause

The root cause lies in insufficient error handling during the XML canonicalization process. When libxml2 encounters invalid XML input during canonicalization, it returns an empty string instead of raising an error or returning the expected canonicalized node. The ruby-saml library fails to detect this condition and proceeds to compute the DigestValue over the empty string.

This design flaw allows attackers to craft malicious SAML responses that pass signature verification despite containing manipulated assertions, as the signature is validated against empty or incorrect data rather than the actual assertion content.

Attack Vector

The Signature Wrapping attack exploits the discrepancy between what the signature validates and what the application processes. An attacker intercepts or crafts a SAML response and manipulates the XML structure to include malicious assertions while ensuring the signature verification passes by exploiting the empty canonicalization output.

The attack flow typically involves:

  1. Obtaining a valid SAML response or crafting a malicious one
  2. Manipulating the XML structure to include attacker-controlled assertions
  3. Exploiting the canonicalization flaw to bypass signature verification
  4. Submitting the manipulated response to gain unauthorized access

The security patch addresses this vulnerability by adding message size validation and improving error handling:

ruby
 
         decoded = decode(saml)
         begin
-          inflate(decoded)
+          message = inflate(decoded)
         rescue
-          decoded
+          message = decoded
         end
+
+        if message.bytesize > settings.message_max_bytesize
+          raise ValidationError.new("Encoded SAML Message exceeds " + settings.message_max_bytesize.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)

Source: GitHub Commit

Detection Methods for CVE-2025-66568

Indicators of Compromise

  • Unusual SAML assertion patterns with malformed or unusually structured XML content
  • Authentication events where user identity claims don't match expected patterns
  • Multiple successful authentications from disparate geographic locations for the same user
  • SAML responses with abnormal XML structures or duplicate elements

Detection Strategies

  • Monitor SAML authentication logs for assertions with unexpected or empty DigestValue computations
  • Implement anomaly detection for authentication patterns that deviate from established user baselines
  • Deploy application-layer monitoring to detect malformed SAML responses before processing
  • Audit authentication events for signs of identity spoofing or privilege escalation

Monitoring Recommendations

  • Enable verbose logging for SAML authentication processing to capture canonicalization errors
  • Implement real-time alerting for failed SAML signature verifications followed by successful authentications
  • Monitor for unusual patterns in SSO token issuance and session creation
  • Track ruby-saml library version across all deployments to identify vulnerable instances

How to Mitigate CVE-2025-66568

Immediate Actions Required

  • Upgrade ruby-saml to version 1.18.0 or later immediately
  • Audit all applications using ruby-saml for SAML authentication functionality
  • Review authentication logs for signs of prior exploitation
  • Implement additional authentication controls while patching is in progress

Patch Information

The vulnerability is fixed in ruby-saml version 1.18.0. Organizations should update their Gemfile to specify the patched version and run bundle update to apply the fix. The patch introduces proper validation of canonicalization output and message size limits to prevent exploitation.

For detailed information about the fix, refer to the GitHub Security Advisory and the commit changes.

Workarounds

  • Implement additional identity verification at the application layer beyond SAML assertions
  • Deploy web application firewalls (WAF) with rules to detect malformed SAML responses
  • Enable strict XML validation before processing SAML responses
  • Consider implementing IP-based access restrictions for SAML endpoints as a temporary measure
bash
# Configuration example
# Update Gemfile to use patched version
gem 'ruby-saml', '>= 1.18.0'

# Run bundle update to apply the fix
bundle update ruby-saml

# Verify the installed version
bundle show ruby-saml

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOnelogin Ruby Saml

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.04%

  • 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: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-347
  • Technical References
  • GitHub Commit Changes
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66567: Onelogin Ruby-saml 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