CVE catalog

CVE-2025-66568

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 use

[CVE catalog]

Severity
Critical · CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.25% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-samlbookworm1.13.0-1+deb12u1not affected
Debianruby-samlbookworm-security1.13.0-1+deb12u1not affected
Cperuby-samlNot reported1.18.0fixed
Ubunturuby-samlpro1.15.0-1vulnerable
Ubunturuby-samlpro1.15.0-1ubuntu0.24.04.1vulnerable
Ubunturuby-samlpro1.15.0-1ubuntu0.24.04.1+esm1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-samlsourcebookwormNot affectedunimportantNot reportedNot reported
Cperuby-samlcpeNot reported1.18.0Not reportedNVD-CVE-2025-66568Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ruby-saml]Not affected
    Details (4)
    • 1.13.0-1+deb12u1 · all · bookworm

      Not affected

      nvd · ruby-saml · debian · bookworm

    • 1.13.0-1+deb12u1 · all · bookworm

      Not affected

      nvd · ruby-saml · debian · bookworm

    • 1.13.0-1+deb12u1 · all · bookworm-security

      Not affected

      nvd · ruby-saml · debian · bookworm

    • 1.13.0-1+deb12u1 · all · bookworm-security

      Not affected

      nvd · ruby-saml · debian · bookworm

Observed:

References