GitHub Advisoryadvisory · RubyGems

GHSA-754f-8gm6-c4r2 Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential)

CRITICAL Published 2025-03-12 Modified 2025-11-03 Official page ↗
Aliases
CVE-2025-25292
Ecosystem
RubyGems
Packages
ruby-saml
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-347, CWE-436
Reviewed
2025-03-12

Affected packages

• RubyGems ruby-saml: >= 1.13.0, < 1.18.0 → fixed in 1.18.0 • RubyGems ruby-saml: < 1.12.4 → fixed in 1.12.4

Description

Summary An authentication bypass vulnerability was found in ruby-saml 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. Impact This issue may lead to authentication bypass.

Related

Alias · CVE (1)

  • CVE-2025-25292 ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. vulnerability

Weakness · CWE (2)

  • CWE-347 Improper Verification of Cryptographic Signature weakness
  • CWE-436 Interpretation Conflict weakness

References