# CVE-2025-66568: ruby-saml Libxml2 Canonicalization errors can bypass Digest/Signature validation

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.18.0 (CNA); fix release not confirmed
- Status: published
- Published: 2025-12-09 · Modified: 2025-12-09
- Aliases: UBUNTU-CVE-2025-66568, GHSA-x4h9-gwv3-r4m4
- Record: https://cvemate.com/vulnerability/CVE-2025-66568 · JSON: https://cvemate.com/vulnerability/CVE-2025-66568/json

## Description

```text
The ruby-saml library implements the client side of an SAML authorization. Versions up to and including 1.12.4, are vulnerable to authentication bypass through the libxml2 canonicalization process used by Nokogiri for document transformation, which allows an attacker to execute a Signature Wrapping attack. When libxml2’s canonicalization is invoked on an invalid XML input, it may return an empty string rather than a canonicalized node. ruby-saml then proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded. This issue is fixed in version 1.18.0.
```

## Signals

- CVSS: 9.3 critical (v4.0, CVE.org) 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
- EPSS: 0.265%, percentile 19.676%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu ruby-saml (Ubuntu): All versions (No fix recorded)
- RubyGems ruby-saml (RubyGems): \< 1.18.0
- onelogin ruby-saml: \< 1.18.0
- saml-toolkits ruby-saml: \< 1.18.0

## References

- <https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-x4h9-gwv3-r4m4>
- <https://github.com/SAML-Toolkits/ruby-saml/commit/acac9e9cc0b9a507882c614f25d41f8b47be349a>
- <https://ubuntu.com/security/CVE-2025-66568>
- <https://www.cve.org/CVERecord?id=CVE-2025-66568>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66568>
- <https://github.com/SAML-Toolkits/ruby-saml>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-66568.yml>

---

Data as of 2026-12-05T04:20:59.106Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
