{"id":"CVE-2025-54572","published":"2025-07-30T14:05:43Z","modified":"2025-11-03T18:13:37Z","title":"Ruby SAML DOS vulnerability with large SAML response","vendor":"SAML-Toolkits","product":"ruby-saml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00456,"percentile":0.40433,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-rrqh-93c8-j966","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/pull/770","tags":["x_refsource_MISC"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/38ef5dd1ce17514e202431f569c4f5633e6c2709","tags":["x_refsource_MISC"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.1","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00001.html","tags":[]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":8.09},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"saml-toolkits","affectedVersions":[{"vendor":"SAML-Toolkits","product":"ruby-saml","versions":["< 1.18.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-07-30T14:17:38.090804Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"ruby-saml","vulnerableRanges":["<1.18.1"],"patched":["1.18.1"],"from":["GHSA-rrqh-93c8-j966"],"provenance":"source"}],"summary":{"text":"The ruby-saml library (from SAML-Toolkits), which implements the client side of SAML authorization, contains a flaw in which SAML responses are checked for Base64 format before their size is verified, so the message_max_bytesize setting does not protect against it. An attacker who can send SAML responses to an affected application can trigger resource exhaustion and denial of service, without needing authentication or user interaction, even when message_max_bytesize is configured.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:35Z"},"euvd":{"id":"EUVD-2025-23157","exploited":false,"provenance":"source"}}