CRITICAL🇵🇱 Wersja polska

CVE-2025-66567

CVSS 9.3v4.0pub. 2025-12-09upd. 2025-12-10

The ruby-saml library is for implementing the client side of a SAML authorization. ruby-saml versions up to and including 1.12.4 contain an authentication bypass vulnerability due to an incomplete fix for CVE-2025-25292. ReXML and Nokogiri parse XML differently, generating entirely different document structures from the same input. This allows an attacker to execute a Signature Wrapping attack. This issue is fixed in version 1.18.0.

🤖 AI Analysis
How it works

The vulnerability stems from differences in how XML documents are parsed by the ReXML and Nokogiri libraries — they generate completely different document tree structures from the same input XML document. An attacker can craft a malicious SAML response that will be correctly verified by one library, while the other will process it in a way that allows injection of untrusted content as authenticated. As a result, the digital signature of the SAML response becomes associated with a different fragment of the document than the one actually processed by the application (Signature Wrapping attack), allowing user identity spoofing.

Impact

An attacker can bypass the SAML authentication mechanism and log in as any user, including an administrator, without knowing the password or possessing a valid certificate. This results in a complete breach of confidentiality and integrity of data accessible in the application.

Mitigation & patch

The ruby-saml library should be updated to version 1.18.0, in which the vulnerability has been fixed. Patches and details are available in the vendor references and in the security advisory GHSA-9v8j-x534-2fx3.

Who is affected

ruby-saml library (OneLogin) in versions up to 1.12.4 inclusive

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS: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
  • Onelogin Ruby Saml

    APP
    Onelogin
    < 1.18.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Auth Bypass
CWE
References

Related vulnerabilities

CVE-2025-66568CRITICAL9.3PL ✓same product

Authentication bypass w ruby-saml poprzez atak Signature Wrapping

CVE-2025-25291CRITICAL9.3PL ✓same product

Authentication bypass w ruby-saml poprzez Signature Wrapping (SAML SSO)

CVE-2025-25292CRITICAL9.3PL ✓same product

Pominięcie uwierzytelnienia SAML SSO przez atak Signature Wrapping w ruby-saml

CVE-2024-45409CRITICAL10.0PL ✓same product

Ruby-SAML: pominięcie weryfikacji podpisu odpowiedzi SAML — Auth Bypass

CVE-2015-20108CRITICAL9.8PL ✓same product

XPath injection i RCE w bibliotece ruby-saml (przed wersją 1.0.0)