Skip to main content
CVE-2025-25293VulnerabilityPublished Updated

CVE-2025-25293: ruby-saml · Uncontrolled Resource Consumption

Affects ruby-samlSource CVE Database V5

0

Not known to be exploited · CVSS 7.7 High : upgrade to 1.12.4 soon.

Data as of 26 Oct 2026, 07:57 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.5% chance of exploitation in 30 days – higher than 74% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.12.4
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade ruby-saml to 1.12.4.

Affected software

ProductAffectedFixed in
SAML-Toolkits ruby-samlAffected
  • <1.12.4
Fixed in
  • 1.12.4

AI-suggested

To mitigate CVE-2025-25293, organizations should immediately upgrade ruby-saml to version 1.12.4 or 1.18.0 or later, where the vulnerability is patched. If upgrading is not immediately feasible, implement network-level protections such as rate limiting and filtering of incoming SAML responses to detect and block unusually large or suspicious compressed payloads. Employ Web Application Firewalls (WAFs) with custom rules to monitor and restrict anomalous decompression resource usage. Additionally, review and harden SAML response validation logic to include decompressed size checks and resource usage limits. Monitor system resource metrics closely for unusual spikes during SAML processing. Conduct thorough testing of SAML integrations to ensure that decompression and size validation are robust. Finally, maintain up-to-date inventories of ruby-saml versions in use across all applications and enforce patch management policies to prevent vulnerable versions from remaining in production.

Description

ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. Prior to versions 1.12.4 and 1.18.0, ruby-saml is susceptible to remote Denial of Service (DoS) with compressed SAML responses.ruby-saml uses zlib to decompress SAML responses in case they're compressed. It is possible to bypass the message size check with a compressed assertion since the message size is checked before inflation and not after. This issue may lead to remote Denial of Service (DoS). Versions 1.12.4 and 1.18.0 fix the issue.

References

Community reviews

Loading reviews…