RubySec

Providing security resources for the Ruby community

CVE-2025-25293 (ruby-saml): Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses

Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses

Published: March 12, 2025

SECURITY IDENTIFIERS

GEM

ruby-saml

SEVERITY

CVSS v3.x: 7.5 (High)

PATCHED VERSIONS

~> 1.12.4 >= 1.18.0

DESCRIPTION

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).

RELATED