Skip to main content
← All vulnerabilities
CVE-2025-25292GHSA-754F-8GM6-C4R2BIT-GITLAB-2025-25292

Ruby SAML vulnerable to SAML authentication bypass due to namespace handling (parser differential)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.12.4, 1.18.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • SAML-Toolkits ruby-saml

    fixed in 1.12.4; From 1.13.0 · fixed in 1.18.0

  • ruby-samlRubyGems

    From 1.13.0 · fixed in 1.18.0

  • ruby-samlRubyGems

    fixed in 1.12.4

References 10

GitHub · SAML-Toolkits/ruby-saml

GitHub · omniauth/omniauth-saml

about.gitlab.com

github.blog

portswigger.net

securitylab.github.com