Vulnerability · Published Mar 12, 2025 · Assigned by GitHub_M
CVE-2025-25293ruby-saml vulnerable to Remote Denial of Service (DoS) with compressed SAML responses
High 7.7
In plain English
A high-severity uncontrolled resource consumption in ruby-saml from SAML-Toolkits. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. Prior to versions 1.12.4 and 1.18.0, 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. This issue may lead to remote Denial of Service (DoS). Versions 1.12.4 and 1.18.0 fix the issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-saml | no fix listed | DEBIAN-CVE-2025-25293 |
| RubyGems | ruby-saml | 1.12.4 | GHSA-92rq-c8cf-prrq |
| RubyGems | ruby-saml | 1.18.0 | GHSA-92rq-c8cf-prrq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| SAML-Toolkits | ruby-saml | < 1.12.4>= 1.13.0, < 1.18.0 |
Weakness: CWE-400 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
References
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-92rq-c8cf-prrq x_refsource_CONFIRM
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/commit/acac9e9cc0b9a507882c614f25d41f8b47be349a x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/commit/e2da4c6dae7dc01a4d9cd221395140a67e2b3eb1 x_refsource_MISC
- https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released x_refsource_MISC
- https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4 x_refsource_MISC
- https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0 x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2024-355_ruby-saml x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250314-0008/
- https://lists.debian.org/debian-lts-announce/2025/04/msg00011.html