CVE-2025-25293ruby-saml denial of service via compressed SAML messages
What broke
ruby-saml accepted compressed SAML messages without a tight bound on the decompressed size. A crafted payload can expand into a denial-of-service against the process that verifies SSO responses. Patched in the same March 2025 release as CVE-2025-25291 and CVE-2025-25292.
Why it matters
This one does not log anyone in as admin. It takes the SSO endpoint offline, which for a workforce IdP is still an identity incident: password resets, break-glass, and help-desk social engineering spike the moment login is down. Attackers who cannot wrap a signature will happily knock the verifier over instead.
What to do
- Upgrade ruby-saml with the wrapping fixes. Do not cherry-pick only the critical CVEs.
- Cap compressed SAML (and HTTP-Redirect binding) payloads at the reverse proxy, not only in the library.
- Watch for a sudden rise in 5xx on ACS endpoints after a failed login burst.
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
Related identity CVEs
Related on Start with Identity
- CVEruby-saml auth bypass, incomplete fix of CVE-2025-25292
The March 2025 ruby-saml patch did not close the parser differential. CVE-2025-54572 is the incomplete-fix follow-on: still a critical SSO impersonation if you
- CVEruby-saml 2024 auth bypass (ahacker1), still in the blast radius
The original 2024 ruby-saml authentication bypass (CVSS 10.0). It is outside the last twelve months, but every 2025 ruby-saml CVE is an incomplete-fix descendan
- CVEruby-saml bypass after 1.12.4, PortSwigger Fragile Lock
Disclosed 8 December 2025 with CVE-2025-66568. ruby-saml below 1.18.0, including the earlier patched 1.12.4 line, still allowed SAML assertion forgery. Fixed in
- BlogFortinet's January SSO bypass hit boxes already patched for December's SAML bug
CVE-2026-24858 is the follow-on FortiCloud SSO SAML bypass. Devices patched for CVE-2025-59718 and 59719 were still exploitable. Actively exploited. CISA guidan
- GlossaryIdentity Federation
A trust relationship between identity providers and service providers that lets users authenticate once at their home IdP and access applications at the other p
- GlossaryService Provider (SP)
The application that consumes identity assertions from an IdP to grant the user access. In SAML it's the SP; in OIDC the equivalent is the Relying Party. The se