# CVE-2025-66567: ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-12-08T21:30:56.000Z
- Modified: 2026-10-14T21:10:00.183Z
- Also known as: GHSA-9v8j-x534-2fx3
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

The ruby-saml library is for implementing the client side of a SAML authorization. ruby-saml versions up to and including 1.12.4 contain an authentication bypass vulnerability due to an incomplete fix for CVE-2025-25292. ReXML and Nokogiri parse XML differently, generating entirely different document structures from the same input. This allows an attacker to execute a Signature Wrapping attack. This issue is fixed in version 1.18.0.

(As written by CVE List.)

## Affected

- SAML-Toolkits ruby-saml: < 1.18.0
- ruby-saml (RubyGems): before 1.18.0
- onelogin ruby-saml: before 1.18.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-9v8j-x534-2fx3> (vendor-advisory, web)
- <https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97> (patch, web)
- <https://github.com/advisories/GHSA-754f-8gm6-c4r2> (advisory, not-applicable)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66567> (advisory)
- <https://github.com/SAML-Toolkits/ruby-saml> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-66567.yml> (web)

## Sources

- CVE List: [CVE-2025-66567](https://www.cve.org/CVERecord?id=CVE-2025-66567), CVE Terms of Use, modified 2025-12-09
- GitHub Advisory Database: [GHSA-9v8j-x534-2fx3](https://github.com/advisories/GHSA-9v8j-x534-2fx3), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-66567](https://nvd.nist.gov/vuln/detail/CVE-2025-66567), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-66567 · Whole record: https://cve.day/CVE-2025-66567.json · Rebuilt by cve.day 2026-11-25T22:59:08.540Z
