Home

Description

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.

PUBLISHED Reserved 2025-12-04 | Published 2025-12-09 | Updated 2025-12-09 | Assigner GitHub_M




CRITICAL: 9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Problem types

CWE-347: Improper Verification of Cryptographic Signature

Product status

< 1.18.0
affected

References

github.com/...y-saml/security/advisories/GHSA-x4h9-gwv3-r4m4

github.com/...ommit/acac9e9cc0b9a507882c614f25d41f8b47be349a

cve.org (CVE-2025-66568)

nvd.nist.gov (CVE-2025-66568)

Download JSON