Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses
Published 12 Mar 2025 · Updated 4 Feb 2026
Is your project on an affected ruby-saml?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <1.12.4
- Fixed in
- 1.12.4
bundle update --conservative ruby-saml # Gemfile: '>= 1.12.4'- Affected
- >=1.13.0 <1.18.0
- Fixed in
- 1.18.0
bundle update --conservative ruby-saml # Gemfile: '>= 1.18.0'Details
Summary
ruby-saml is susceptible to remote Denial of Service (DoS) with compressed SAML responses.
Ruby-saml uses zlib to decompress SAML responses in case they're compressed. It is possible to bypass the message size check with a compressed assertion since the message size is checked before inflation and not after.
Impact
This issue may lead to remote Denial of Service (DoS).
Is GHSA-92rq-c8cf-prrq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ruby-saml, and gives you the command that fixes it.
More advisories for ruby-saml
- CriticalCVE-2025-66568Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation · 8 Dec 2025
- CriticalCVE-2025-66567Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential) · 8 Dec 2025
- MediumCVE-2025-54572Ruby SAML DOS vulnerability with large SAML response · 30 Jul 2025
- CriticalCVE-2025-25292Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential) · 12 Mar 2025
- CriticalCVE-2025-25291Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential) · 12 Mar 2025
- CriticalCVE-2024-45409SAML authentication bypass via Incorrect XPath selector · 10 Sept 2024
References
- Linkgithub.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-92rq-c8cf-prrq
- Linkgithub.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-25293
- Linkgithub.com/SAML-Toolkits/ruby-saml/commit/acac9e9cc0b9a507882c614f25d41f8b47be349a
- Linkgithub.com/SAML-Toolkits/ruby-saml/commit/e2da4c6dae7dc01a4d9cd221395140a67e2b3eb1
- Linkabout.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released
- Linkgithub.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials
- Packagegithub.com/SAML-Toolkits/ruby-saml
- Linkgithub.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4
- Linkgithub.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-25293.yml
- Linklists.debian.org/debian-lts-announce/2025/04/msg00011.html
- Linksecurity.netapp.com/advisory/ntap-20250314-0008
- Advisorysecuritylab.github.com/advisories/GHSL-2024-355_ruby-saml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.