CVE-2025-25293
Ruby vulnerability analysis and mitigation

Overview

Ruby-saml, a library providing SAML single sign-on (SSO) for Ruby, was found to be vulnerable to remote Denial of Service (DoS) with compressed SAML responses (CVE-2025-25293). Prior to versions 1.12.4 and 1.18.0, the library was susceptible to a vulnerability where an attacker could bypass message size checks with compressed SAML responses. The vulnerability was discovered in March 2025 and affects all versions prior to 1.12.4 and versions from 1.13.0 to before 1.18.0 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from how ruby-saml uses zlib to decompress SAML responses. The issue arises because the message size check is performed before inflation and not after, allowing attackers to bypass size restrictions. The vulnerability has been assigned a CVSS v4.0 score of 7.7 (High) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P. The vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption) (NVD).

Impact

Successful exploitation of this vulnerability could lead to remote Denial of Service (DoS) conditions. The vulnerability allows attackers to bypass message size checks, potentially causing resource exhaustion through the processing of maliciously crafted compressed SAML responses (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in ruby-saml versions 1.12.4 and 1.18.0. Users are strongly recommended to upgrade to these patched versions. The fix involves implementing proper message size validation after decompression. Projects using dependencies that rely on ruby-saml (such as omniauth-saml) should also ensure they update to versions that reference the fixed ruby-saml versions (GitHub Release, GitHub Release).

Community reactions

GitLab has acknowledged and addressed this vulnerability in their products, releasing patches in versions 17.9.2, 17.8.5, and 17.7.7. They have noted that the vulnerability requires an attacker to have compromised a valid user account to perform the authentication bypass (GitLab Release).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025
GHSA-52c5-vh7f-26fxHIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 06, 2025
CVE-2025-12790HIGH7.4
  • RubyRuby
  • mqtt
NoYesNov 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management