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

> CVE-2025-25292: Ruby SAML vulnerable to SAML authentication bypass due to namespace handling (parser differential). CVSS 9.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-25292
Last updated: 2026-06-17T09:00:37Z

- Published: 2025-03-12 20:53 UTC · Updated: 2026-06-17 09:00 UTC · Assigner: GitHub\_M
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 65.1%, 99th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-347, CWE-436

## 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 vendors and products

- SAML-Toolkits: ruby-saml

## Tracked companies

- [GitLab](https://rewindex.com/company/gitlab.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-25292)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-25292)
- [https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released](https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released)
- [https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials](https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials)
- [https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv](https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv)
- [https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9](https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9)
- [https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97](https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97)
- [https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4](https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4)
- [https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0](https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0)
- [https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-754f-8gm6-c4r2](https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-754f-8gm6-c4r2)
- [https://portswigger.net/research/saml-roulette-the-hacker-always-wins](https://portswigger.net/research/saml-roulette-the-hacker-always-wins)
- [https://securitylab.github.com/advisories/GHSL-2024-329\_GHSL-2024-330\_ruby-saml](https://securitylab.github.com/advisories/GHSL-2024-329_GHSL-2024-330_ruby-saml)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-25292 · Markdown: https://rewindex.com/cve/CVE-2025-25292.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-25292 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:13:04.156Z
