Critical severity · published Mar 12, 2025
CVE-2025-25291
ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)
9.8
CVSS
21%
EPSS
No
On KEV
Description
ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. An authentication bypass vulnerability was found in ruby-saml prior to versions 1.12.4 and 1.18.0 due to a parser differential. ReXML and Nokogiri parse XML differently; the parsers can generate entirely different document structures from the same XML input. That allows an attacker to be able to execute a Signature Wrapping attack. This issue may lead to authentication bypass. Versions 1.12.4 and 1.18.0 fix the issue.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)21.0% · higher than 98% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RU
ruby-saml · SAML-Toolkits
< 1.12.4; >= 1.13.0, < 1.18.0 · source: vendor, NVD
OS
Omniauth Saml · Omniauth
before 1.10.6; 2.0.0 before 2.1.3; 2.2.0 before 2.2.3 · source: NVD
ST
Storagegrid · Netapp
All versions, or not specified · source: NVD
Affected product
RU
ruby-saml
SAML-Toolkits
More from ruby-saml
9.8
CVE-2025-25292
Ruby SAML vulnerable to SAML authentication bypass due to namespace handling (parser differential)
9.8
CVE-2024-45409
The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector
9.1
CVE-2025-66568
ruby-saml Libxml2 Canonicalization errors can bypass Digest/Signature validation
9.1
CVE-2025-66567
ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)
7.5
CVE-2025-25293
ruby-saml vulnerable to Remote Denial of Service (DoS) with compressed SAML responses