
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-66567 is a SAML authentication bypass vulnerability in the ruby-saml library caused by an incomplete fix for CVE-2025-25292. It affects ruby-saml versions up to and including 1.12.4 (all versions below 1.18.0), which implement the client side of SAML authorization for Ruby applications. The vulnerability was disclosed on December 8, 2025, and is fixed in version 1.18.0. It carries a CVSS v3.1 score of 9.1 (Critical) and a CVSS v4.0 score of 9.3 (Critical) (Github Advisory).
The root cause is an XML parser differential between ReXML and Nokogiri (CWE-347: Improper Verification of Cryptographic Signature). Because these two parsers generate entirely different document structures from the same XML input, an attacker can craft a malicious SAML response that passes signature validation under one parser while presenting attacker-controlled content to the other — a classic XML Signature Wrapping (XSW) attack. The prior fix for CVE-2025-25292 was incomplete, leaving versions up to 1.12.4 still exploitable via namespace handling inconsistencies. The patch in version 1.18.0 addresses this by unifying how signed assertions are extracted and validated, using a signed_assertion cache derived from the canonicalized, signature-verified XML rather than re-querying the parsed document (Github Advisory, Patch Commit).
Successful exploitation allows an unauthenticated remote attacker to bypass SAML-based authentication entirely, potentially impersonating any legitimate user — including administrators — without valid credentials. The confidentiality and integrity impacts are both rated High, as an attacker can gain unauthorized access to protected resources and manipulate authentication state. Availability is not directly impacted, but account takeover and identity spoofing can lead to significant downstream compromise of any application relying on ruby-saml for SSO (Github Advisory).
As of the disclosure date, there is no public proof-of-concept exploit specifically for CVE-2025-66567, and no evidence of in-the-wild exploitation has been reported (Github Advisory). The EPSS score is approximately 0.074%, placing it in the 16th percentile for near-term exploitation likelihood. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the closely related predecessor CVE-2025-25292 had an EPSS score of ~3.3% and was widely discussed, and the underlying XSW technique is well-understood by attackers, making weaponization feasible for skilled adversaries (Github Advisory).
<Assertion> element with attacker-controlled attributes (e.g., target username/role) in a position that Nokogiri's signature validation ignores but ReXML's assertion extraction reads./saml/consume)./saml/consume, /auth/saml/callback) containing unusually large or structurally complex SAMLResponse parameters; SAMLResponse values with duplicate or nested <Assertion> elements when base64-decoded.<Assertion> blocks, mismatched namespace prefixes, or <Signature> elements referencing a different element ID than the assertion being consumed.The primary remediation is to upgrade ruby-saml to version 1.18.0 or later, which contains a complete fix for the parser differential issue (Github Advisory, ruby-saml repo). Note that the ruby-saml README also references version 1.18.1 as addressing a subsequent CVE (CVE-2025-54572), so upgrading to the latest available release is recommended. If immediate patching is not possible, consider temporarily disabling SAML authentication and falling back to alternative authentication methods, and implement strict monitoring of SAML consumer endpoints for anomalous activity.
The vulnerability was covered by security news outlets including SecurityOnline and CybersecurityNews shortly after disclosure, noting it as a critical authentication bypass affecting SAML implementations (SecurityOnline). PortSwigger Research published a related technical write-up titled "The Fragile Lock" discussing SAML parser differential attacks in this class of vulnerabilities (PortSwigger Research). The Hacker News weekly recap included mention of the vulnerability alongside other notable December 2025 disclosures. Red Hat also tracked the CVE, indicating relevance to downstream enterprise consumers of the library (Red Hat).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."