Skip to content
OpenAdvisories
Critical · 9.3 CVE-2025-25292 BIT-gitlab-2025-25292EUVD-2025-6414GHSA-754f-8gm6-c4r2

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

Published Mar 12, 2025 · Updated Nov 3, 2025 · Assigned by GitHub_M

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 products

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 ruby-saml No fix yet —
Debian 11 ruby-saml 1.11.0-1+deb11u2 DLA-4115-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS ruby-saml 1.15.0-1ubuntu0.24.04.1+esm1 USN-7409-1
Ubuntu Pro 22.04 LTS ruby-saml 1.13.0-1ubuntu0.1+esm1 USN-7409-1
Ubuntu Pro 20.04 LTS ruby-saml 1.11.0-1ubuntu0.1+esm1 USN-7409-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ruby-saml 1.7.2-1ubuntu0.1~esm2 USN-7409-1
Ubuntu Pro 16.04 LTS ruby-saml 1.1.2-1ubuntu1+esm2 USN-7409-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems ruby-saml >= 1.13.0, < 1.18.0 1.18.0 GHSA-754f-8gm6-c4r2
RubyGems ruby-saml < 1.12.4 1.12.4 GHSA-754f-8gm6-c4r2

Advisories 5

References