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

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

CVE-2025-66567 is an authentication bypass flaw in Onelogin Ruby-saml caused by XML parsing differences that enable Signature Wrapping attacks. This article covers the technical details, affected versions, and mitigation.

Published: March 18, 2026

CVE-2025-66567 Overview

CVE-2025-66567 is a critical authentication bypass vulnerability affecting the ruby-saml library, which is widely used for implementing SAML (Security Assertion Markup Language) authorization on the client side. This vulnerability exists due to an incomplete fix for CVE-2025-25292 and allows attackers to bypass authentication mechanisms through a Signature Wrapping attack.

The root cause stems from the different ways ReXML and Nokogiri parse XML documents—generating entirely different document structures from the same input. This parsing discrepancy creates an exploitable condition that enables attackers to manipulate SAML assertions and bypass signature validation.

Critical Impact

Attackers can bypass SAML authentication entirely, potentially gaining unauthorized access to protected resources and applications that rely on ruby-saml for identity verification.

Affected Products

  • onelogin ruby-saml versions up to and including 1.12.4
  • Applications using vulnerable ruby-saml for SAML authentication
  • Identity providers and service providers implementing ruby-saml

Discovery Timeline

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

Technical Details for CVE-2025-66567

Vulnerability Analysis

This vulnerability represents an authentication bypass flaw (CWE-347: Improper Verification of Cryptographic Signature) that affects SAML-based authentication systems. The issue arises from an incomplete patch for the earlier CVE-2025-25292, indicating that the original remediation did not fully address the underlying parsing inconsistency between XML processing libraries.

The attack exploits the fact that ReXML and Nokogiri—two common Ruby XML parsing libraries—interpret the same XML input differently. When processing SAML assertions, this discrepancy allows an attacker to craft malicious XML that passes signature validation in one parser while being interpreted differently by another, effectively enabling unauthorized authentication.

Root Cause

The vulnerability originates from a fundamental architectural issue in how ruby-saml handles XML document parsing and signature validation. The library uses multiple XML parsers that produce divergent document object models from identical input. This inconsistency allows attackers to inject malicious content that bypasses the signature verification process while still being processed as valid authentication data.

The incomplete fix for CVE-2025-25292 failed to account for all scenarios where this parsing discrepancy could be exploited, leaving a residual attack surface that CVE-2025-66567 addresses.

Attack Vector

The attack is network-exploitable and requires no authentication or user interaction. An attacker can craft a specially constructed SAML response that exploits the XML parsing inconsistency to wrap a legitimate signature around forged assertion content. This Signature Wrapping attack allows the attacker to:

  1. Intercept or obtain a valid SAML assertion
  2. Manipulate the XML structure to insert malicious content
  3. Preserve the original signature in a location that passes validation
  4. Present the modified assertion to gain unauthorized access

The security patch introduces proper malformed document checking to prevent this attack:

ruby
       # @raise [ValidationError] if soft == false and validation fails
       #
       def validate_structure
-        unless valid_saml?(document, soft)
+        check_malformed_doc = check_malformed_doc?(settings)
+        unless valid_saml?(document, soft, check_malformed_doc)
           return append_error("Invalid SAML Logout Response. Not match the saml-schema-protocol-2.0.xsd")
         end

Source: GitHub Commit

The core fix adds explicit malformed document checking to the validation process:

ruby
       # Validates the SAML Message against the specified schema.
       # @param document [REXML::Document] The message that will be validated
       # @param soft [Boolean] soft Enable or Disable the soft mode (In order to raise exceptions when the message is invalid or not)
+      # @param check_malformed_doc [Boolean] check_malformed_doc Enable or Disable the check for malformed XML
       # @return [Boolean] True if the XML is valid, otherwise False, if soft=True
       # @raise [ValidationError] if soft == false and validation fails
       #
-      def valid_saml?(document, soft = true)
+      def valid_saml?(document, soft = true, check_malformed_doc = true)
         begin
-          xml = Nokogiri::XML(document.to_s) do |config|
-            config.options = XMLSecurity::BaseDocument::NOKOGIRI_OPTIONS
-          end
+          xml = XMLSecurity::BaseDocument.safe_load_xml(document, check_malformed_doc)
         rescue StandardError => error
           return false if soft
           raise ValidationError.new("XML load failed: #{error.message}")

Source: GitHub Commit

Detection Methods for CVE-2025-66567

Indicators of Compromise

  • Unusual SAML assertions with duplicate or nested signature elements
  • Authentication logs showing successful logins with malformed SAML response structures
  • XML documents containing multiple Signature elements or unexpected element positioning
  • Login attempts with SAML responses that differ structurally from typical identity provider responses

Detection Strategies

  • Implement deep packet inspection for SAML traffic to identify Signature Wrapping patterns
  • Monitor authentication logs for anomalies such as logins from unexpected identity sources or unusual user agent patterns
  • Deploy application-layer firewalls configured to detect malformed XML in SAML assertions
  • Audit ruby-saml library versions across all applications and flag instances running version 1.12.4 or earlier

Monitoring Recommendations

  • Enable verbose logging for SAML authentication events including full assertion details
  • Configure alerting for failed signature validation attempts that are followed by successful authentications
  • Implement runtime application self-protection (RASP) to detect XML manipulation attempts
  • Monitor for dependency updates and security advisories related to ruby-saml and its XML parsing dependencies

How to Mitigate CVE-2025-66567

Immediate Actions Required

  • Upgrade ruby-saml to version 1.18.0 or later immediately
  • Audit all applications using ruby-saml and prioritize those exposed to untrusted networks
  • Review authentication logs for any signs of exploitation prior to patching
  • Implement additional authentication factors for critical systems until patches are deployed

Patch Information

The vulnerability is fully remediated in ruby-saml version 1.18.0. The fix introduces proper malformed document checking through the safe_load_xml method, which ensures consistent XML parsing and prevents Signature Wrapping attacks.

For detailed patch information, refer to the GitHub Security Advisory and the security commit.

Workarounds

  • If immediate patching is not possible, consider implementing additional signature validation at the application layer
  • Restrict SAML authentication to trusted identity providers with strict network controls
  • Implement web application firewall rules to reject SAML responses with suspicious XML structures
  • Consider temporarily disabling SAML authentication for highly sensitive applications until patching is complete
bash
# Update ruby-saml to the patched version
bundle update ruby-saml

# Verify the installed version
bundle show ruby-saml
# Expected output: ruby-saml (1.18.0) or higher

# For Gemfile pinning, update to:
# 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
  • 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 Advisory GHSA-754f-8gm6-c4r2
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66568: 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