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 November 10, 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.18.1

Fixed versions

  • 1.18.1

Solution

Upgrade to version 1.18.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

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 Sun, 08 Nov 2026 00:16:04 +0000.