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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-07-30T13:20:05.000Z
- Modified: 2026-09-10T03:50:26.252Z
- Also known as: GHSA-rrqh-93c8-j966
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- SAML-Toolkits ruby-saml: < 1.18.1
- ruby-saml (RubyGems): before 1.18.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-rrqh-93c8-j966> (web)
- <https://github.com/SAML-Toolkits/ruby-saml/pull/770> (web)
- <https://github.com/SAML-Toolkits/ruby-saml/commit/38ef5dd1ce17514e202431f569c4f5633e6c2709> (web)
- <https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.1> (web)
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00001.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54572> (advisory)
- <https://github.com/SAML-Toolkits/ruby-saml> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-54572.yml> (web)

## Sources

- CVE List: [CVE-2025-54572](https://www.cve.org/CVERecord?id=CVE-2025-54572), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-rrqh-93c8-j966](https://github.com/advisories/GHSA-rrqh-93c8-j966), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-54572](https://nvd.nist.gov/vuln/detail/CVE-2025-54572), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54572 · Whole record: https://cve.day/CVE-2025-54572.json · Rebuilt by cve.day 2026-11-25T22:59:01.898Z
