CVE-2025-54572 Details
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.
A denial-of-service vulnerability has been identified in the Ruby SAML library, specifically in versions prior to 1.18.1. The issue arises because the library validates SAML responses for Base64 encoding before checking the message size, creating a risk of resource exhaustion. This vulnerability exists even when the 'message_max_bytesize' setting is configured, as the protection is ineffective in certain scenarios due to the order of operations in the code.
Users can upgrade to Ruby SAML version 1.18.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 30, 2025CISA-ADP
Assessed Jul 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/09/msg00001.html | CVE | |
| https://github.com/SAML-Toolkits/ruby-saml/commit/38ef5dd1ce17514e202431f569c4f5633e6c2709 | [email protected] | Source CodeVendor |
| https://github.com/SAML-Toolkits/ruby-saml/pull/770 | [email protected] | Issue TrackingVendor |
| https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.1 | [email protected] | Release NotesVendor |
| https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-rrqh-93c8-j966 | [email protected] | AdvisoryRemedyTechnical AnalysisVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SAML-Toolkits ruby-saml | < 1.18.1 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 30, 2025 | New CVE Received | [email protected] |
Volerion