CVE-2025-25291
ruby-saml provides security assertion markup language (SAML) single si ...
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-347, CWE-436
Affected packages · 2
Operating systems · 7 fixes
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | ruby-saml | 1.11.0-1+deb11u2 |
| 12 | ruby-saml | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-saml | affected |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | ruby-saml | 1.7.2-1ubuntu0.1~esm2 |
| 20.04-ESM | ruby-saml | 1.11.0-1ubuntu0.1+esm1 |
| 22.04 | ruby-saml | affected |
| 24.04 | ruby-saml | affected |
References
- about.gitlab.com https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released
- github.blog https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials
- github.com https://github.com/SAML-Toolkits/ruby-saml
- github.com https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9
- github.com https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97
- github.com https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4
- github.com https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0
- github.com https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm
- github.com https://github.com/advisories/GHSA-4vc4-m8qh-g8jm
- github.com https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv
Show all 20 references
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-25291.yml
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/04/msg00011.html
- news.ycombinator.com https://news.ycombinator.com/item?id=43374519
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-25291
- portswigger.net https://portswigger.net/research/saml-roulette-the-hacker-always-wins
- security.netapp.com https://security.netapp.com/advisory/ntap-20250314-0010
- security.netapp.com https://security.netapp.com/advisory/ntap-20250314-0010/
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2024-329_GHSL-2024-330_ruby-saml
- ubuntu.com https://ubuntu.com/security/notices/USN-7409-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-25291
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.