PT-2025-49775 · Libxml2+2 · Libxml2+2
Published
2025-12-09
·
Updated
2026-01-15
·
CVE-2025-66568
CVSS v4.0
9.3
Critical
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
ruby-saml versions through 1.12.4
Description
The ruby-saml library, which handles SAML authorization on the client side, has a flaw that could allow an attacker to bypass authentication. This is due to how the library processes XML data using Nokogiri and libxml2. Specifically, the canonicalization process within libxml2, when given invalid XML, can return an empty string instead of a properly canonicalized version. ruby-saml then calculates a DigestValue based on this empty string, incorrectly assuming the canonicalization was successful. This enables a Signature Wrapping attack.
Recommendations
Update to version 1.18.0 or later.
Exploit
Fix
Improper Verification of Cryptographic Signature
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nokogiri
Libxml2
Ruby-Saml