CVE-2025-66568

CRITICAL

ruby-saml <1.12.4 - Auth Bypass

Title source: llm

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.

Scores

CVSS v3 9.1
EPSS 0.0004
EPSS Percentile 12.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Classification

CWE
CWE-347
Status published

Affected Products (2)

onelogin/ruby-saml < 1.18.0
rubygems/ruby-saml < 1.18.0RubyGems

Timeline

Published Dec 09, 2025
Tracked Since Feb 18, 2026