Skip to main content
VulnerabilityPublished Updated

CVE-2025-25292: ruby-saml · Improper Verification of Cryptographic Signature

Affects ruby-samlSource CVE Database V5

0

Not known to be exploited · 65% EPSS · CVSS 9.3 Critical : upgrade to 1.12.4 as a priority.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
65.0% chance of exploitation in 30 days – higher than 99% 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:H/VI:H/VA:N/SC:N/SI:N/SA:N

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 26 Oct 2026.

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

  1. Immediately upgrade ruby-saml to version 1.12.4 or 1.18.0 or later, which contain patches addressing the parser differential and signature verification issues.
  2. Audit all SAML SSO implementations to confirm the use of patched ruby-saml versions and consistent XML parsing libraries.
  3. Implement strict XML schema validation and reject SAML assertions containing multiple signature elements or unexpected XML structures.
  4. Employ runtime monitoring and anomaly detection on authentication flows to detect unusual SAML responses or authentication bypass attempts.
  5. Review and enhance logging around SAML authentication events to enable rapid detection and forensic analysis of suspicious activity.
  6. Educate development and security teams on the risks of parser differentials and signature wrapping attacks to prevent similar issues in custom SAML integrations.
  7. Consider deploying Web Application Firewalls (WAFs) with rules targeting known signature wrapping attack patterns.
  8. Coordinate with identity providers and service providers to ensure end-to-end security of SAML assertions and signatures.

Description

ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. An authentication bypass vulnerability was found in ruby-saml prior to versions 1.12.4 and 1.18.0 due to a parser differential. ReXML and Nokogiri parse XML differently, the parsers can generate entirely different document structures from the same XML input. That allows an attacker to be able to execute a Signature Wrapping attack. This issue may lead to authentication bypass. Versions 1.12.4 and 1.18.0 contain a patch for the issue.

References

Community reviews

Loading reviews…