CVE-2025-25293
ruby-saml vulnerable to Remote Denial of Service (DoS) with compressed SAML responses
Reported by github_m · Published March 12, 2025
ruby-saml is fixed in 1.18.0 and 1.12.4 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby-saml | RubyGems | 1.18.0, 1.12.4 |
| gitlab | Bitnami | 17.9.2 |
| omniauth_saml | omniauth | 2.2.3, 2.1.3, 1.10.6 |
| ruby-saml | onelogin | 1.18.0, 1.12.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| SAML-Toolkits | ruby-saml | < 1.12.4, >= 1.13.0, < 1.18.0 |
| RubyGems | ruby-saml | 0, 1.13.0 |
| SAML-Toolkits | ruby-saml | 0, 1.13.0 |
Timeline
- Mar 12, 2025 CVE Published
- Mar 13, 2025 EPSS Score (30 in total, the first dated here)
- Mar 14, 2025 PoC Published (2 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Jun 16, 2026 Coalition ESS Score
- Aug 10, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-25293
vulnetix vdb fixes CVE-2025-25293
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-25293/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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://nvd.nist.gov/vuln/detail/CVE-2025-25293 advisory
- https://github.com/advisories/GHSA-92rq-c8cf-prrq advisory
- https://github.com/SAML-Toolkits/ruby-saml url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-25293.yml advisory
- https://security.netapp.com/advisory/ntap-20250314-0008 advisory
- https://security.netapp.com/advisory/ntap-20250314-0008/ url
- https://lists.debian.org/debian-lts-announce/2025/04/msg00011.html url