CVE-2025-54572

Ruby SAML DOS vulnerability with large SAML response

Published Jul 30, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
The Ruby SAML library is for implementing the client side of a SAML authorization. In versions 1.18.0 and below, 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. This is fixed in version 1.18.1.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4288-1 ruby-saml security update
EUVD EUVD EUVD-2025-23157 Ruby SAML DOS vulnerability with large SAML response
Github GHSA Github GHSA GHSA-rrqh-93c8-j966 Ruby SAML DOS vulnerability with large SAML response
History
Type Values Removed Values Added
First Time appeared Saml-toolkits
Saml-toolkits ruby-saml
Vendors & Products Saml-toolkits
Saml-toolkits ruby-saml
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Ruby SAML library is for implementing the client side of a SAML authorization. In versions 1.18.0 and below, 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. This is fixed in version 1.18.1.
Title Ruby SAML DOS vulnerability with large SAML response
Weaknesses CWE-400
CWE-770
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 6:13 PM
Reserved
Jul 25, 2025, 4:19 PM
Status
Deferred
Published
Jul 30, 2025, 2:15 PM
Modified
Jun 17, 2026, 9:40 AM