Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. ruby-saml
  4. ›
  5. CVE-2025-54572

CVE-2025-54572: Ruby SAML DOS vulnerability with large SAML response

July 30, 2025 (updated August 4, 2025)

A denial-of-service vulnerability exists in ruby-saml even with the message_max_bytesize setting configured. The vulnerability occurs because the SAML response is validated for Base64 format prior to checking the message size, leading to potential resource exhaustion.

References

  • github.com/SAML-Toolkits/ruby-saml
  • github.com/SAML-Toolkits/ruby-saml/commit/38ef5dd1ce17514e202431f569c4f5633e6c2709
  • github.com/SAML-Toolkits/ruby-saml/pull/770
  • github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.1
  • github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-rrqh-93c8-j966
  • github.com/advisories/GHSA-rrqh-93c8-j966
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-54572.yml
  • nvd.nist.gov/vuln/detail/CVE-2025-54572

Code Behaviors & Features

Detect and mitigate CVE-2025-54572 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.18.1

Fixed versions

  • 1.18.1

Solution

Upgrade to version 1.18.1 or above.

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

gem/ruby-saml/CVE-2025-54572.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:39 +0000.