7.7High

CVE-2025-25293ruby-saml vulnerable to Remote Denial of Service (DoS) with compressed SAML responses

SAML-Toolkits ruby-saml Published: (1 year ago)

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.

Weakness (CWE): CWE-400

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
omniauth omniauth saml < 1.10.6
onelogin ruby-saml < 1.12.4
SAML-Toolkits ruby-saml < 1.12.4, >= 1.13.0, < 1.18.0

References and patches

CPE matches (NVD) (5)

  • cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:* < 1.10.6
  • cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:* ≥ 2.0.0 < 2.1.3
  • cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:* ≥ 2.2.0 < 2.2.3
  • cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:* < 1.12.4
  • cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:* ≥ 1.13.0 < 1.18.0