Ruby SAML Library Vulnerability Let Attackers Bypass Authentication
A critical vulnerability has been identified in the Ruby SAML library, potentially allowing attackers to bypass authentication mechanisms in affected applications.
A critical vulnerability has been identified in the Ruby SAML library, potentially allowing attackers to bypass authentication mechanisms in affected applications.
The vulnerability, designated as CVE-2025-66567, affects all versions up to and including 1.12.4 and has been assigned a critical CVSS score of 10.0.
This issue arises from an incomplete fix for a previously disclosed vulnerability (CVE-2025-25292).
XML Parser Flaw Enables Signature Wrapping Attack
The vulnerability is due to differing interpretations of XML documents by XML parsers, specifically ReXML and Nokogiri.
This discrepancy can enable attackers to perform a Signature Wrapping attack, manipulating XML signatures in SAML authentication tokens to bypass security controls.
Field Details
CVE ID CVE-2025-66567
Affected Package ruby-saml (RubyGems)
The vulnerability, designated as CVE-2025-66567, affects all versions up to and including 1.12.4 and has been assigned a critical CVSS score of 10.0.
CVSS Score 10.0
Attack Vector Network
CWE CWE-347 (Improper Verification of Cryptographic Signature)
Weakness Signature Wrapping Attack
SAML (Security Assertion Markup Language) is extensively used for single sign-on (SSO) authentication across enterprise applications.
Exploiting this vulnerability could allow attackers unauthorized access to systems without valid credentials, potentially impacting numerous organizations using SAML-based authentication.
The attack requires no user interaction or special privileges and can be executed remotely, posing a significant risk for exploitation over the network.
Attackers could create malicious SAML responses that appear legitimate to the vulnerable parser while containing unauthorized modifications to authentication claims.
Security experts stress the urgency of addressing this flaw due to its authentication-bypass nature.
Organizations using Ruby SAML should upgrade to version 1.18.0 or later, which addresses this vulnerability.
The issue is categorized under CWE-347 (Improper Verification of Cryptographic Signature), indicating fundamental problems with how the library validates digital signatures on SAML assertions.
The vulnerability was discovered and reported through GitHub's advisory process, highlighting the importance of robust XML parsing implementations in security-critical authentication libraries.
Development teams should prioritize this patch in their security maintenance schedule, especially for applications handling sensitive business operations or user data.
Based on reporting by Cyber Security News.
