Start with Identity
Identity CVE · SAML

CVE-2025-66568ruby-saml second Fragile Lock bypass

critical
Product: ruby-samlVendor: SAML-ToolkitsCWE-347Disclosed: 2025-12-08Status: PatchedProtocol deep diveNVD ↗

What broke

CVE-2025-66568 is the second of the two PortSwigger "Fragile Lock" ruby-saml bypasses disclosed on 8 December 2025. It affects ruby-saml below 1.18.0, including the earlier "patched" 1.12.4 line. Fixed in 1.18.1.

Why it matters

Same blast radius as CVE-2025-66567: any user, including admins, on any SP still verifying SAML with that library. Two IDs exist because there were two distinct remaining paths, not because one is theoretical.

What to do

  • Upgrade once, to 1.18.1 or later, and close both tickets together.
  • Rotate IdP signing material if the SP was internet-reachable on a vulnerable build.
  • Stop treating each ruby-saml CVE as a separate risk acceptance. Track the library version as the control.

After you patch

A SAML bypass means the service provider accepted an assertion it should have rejected, so anyone who exploited it authenticated as a real user and left a normal-looking log line.

  • Revoke every session issued by the affected service provider, then rotate its session signing keys. Patching stops new forgeries and does nothing about sessions already minted.
  • Audit administrative accounts and group memberships for changes during the exposure window. Signing in as an administrator is the point of this class, and adding a second account is the standard persistence step.
  • Rotate the identity provider signing certificate if the flaw involved signature validation, and confirm the service provider pins the expected certificate rather than trusting anything in the assertion.
  • Check your own implementation for the same class: exact-match comparison on verification results, rejection of unexpected signature algorithms, and audience and recency checks on every assertion. See SAML 2.0 and SAML vs OIDC.

Sources

Last reviewed By SWI Community TeamSuggest a correctionHow we research

Technique

This CVE is an instance of Federation trust abuse and SAML forgery. A service provider that accepts a SAML assertion it should have rejected treats a forged identity as authenticated, because the failure sits in signature validation code, not in cryptography.

Know a primary source we should add, or a patch status that has changed? Email community@startwithidentity.com. See all briefs in the identity CVE catalog, or volunteer as a CVE Analyst.
Compiled from vendor advisories, NVD, CISA KEV, and public research. CVSS figures can disagree across NVD and the CNA. Confirm affected versions against the vendor advisory before you patch. Independent, community-driven analysis. See the disclaimer.