Vulnerability · Published Mar 12, 2025 · Assigned by GitHub_M

CVE-2025-25292Ruby SAML vulnerable to SAML authentication bypass due to namespace handling (parser differential)

Critical 9.3

In plain English

A critical-severity security flaw in ruby-saml from SAML-Toolkits. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 65.1% (higher than 99.3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)9.3Critical
Exploit odds (30 days)65.1%top 0.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 contain a patch for the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-samlno fix listedDEBIAN-CVE-2025-25292
RubyGemsruby-saml1.18.0GHSA-754f-8gm6-c4r2
RubyGemsruby-saml1.12.4GHSA-754f-8gm6-c4r2

Affected products (as reported)

VendorProductVersions
SAML-Toolkits ruby-saml < 1.12.4>= 1.13.0, < 1.18.0

Weakness: CWE-347, CWE-436 · 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

References