Skip to content
OpenAdvisories
Critical · 9.3 CVE-2025-66568 EUVD-2025-201828GHSA-x4h9-gwv3-r4m4

ruby-saml Libxml2 Canonicalization errors can bypass Digest/Signature validation

Published Dec 9, 2025 · Updated Dec 9, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
SAML-Toolkits ruby-saml < 1.18.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS ruby-saml No fix yet —
Ubuntu Pro 22.04 LTS ruby-saml No fix yet —
Ubuntu Pro 20.04 LTS ruby-saml No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ruby-saml No fix yet —
Ubuntu Pro 16.04 LTS ruby-saml No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems ruby-saml < 1.18.0 1.18.0 GHSA-x4h9-gwv3-r4m4

Advisories 1

References