Skip to main content
Public proof of conceptFix available

CVE-2025-25291

A public proof of concept exists; no exploitation attested.

  • Published2025-03-12
  • Fixed in2.2.3 · 2.1.3 · 1.10.6
  • WeaknessCWE-347 · CWE-436

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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 fix the issue.

Timeline

dates in UTC
  1. 2025-03-1221:15CVE publishedNVD

Versions per branch

NVD · OSV
Omniauth omniauth saml
BranchAffectedFixed in
2.2≥ 2.2.0, < 2.2.32.2.3
2.x≥ 2.0.0, < 2.1.32.1.3
1.10< 1.10.61.10.6
Onelogin ruby-saml
BranchAffectedFixed in
1.x≥ 1.13.0, < 1.18.01.18.0
1.12< 1.12.41.12.4
Netapp storagegrid
BranchAffectedFixed in
—all versionsno fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • SAML-Toolkits ruby-saml
    Affected
    • = < 1.12.4no fix stated
    • = >= 1.13.0, < 1.18.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-09-12

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • ruby-samlUbuntu:Pro:24.04:LTSall versions · fixed in 1.15.0-1ubuntu0.24.04.1+esm1
  • ruby-samlUbuntu:Pro:22.04:LTSall versions · fixed in 1.13.0-1ubuntu0.1+esm1
  • ruby-samlUbuntu:Pro:20.04:LTSall versions · fixed in 1.11.0-1ubuntu0.1+esm1
  • ruby-samlUbuntu:Pro:18.04:LTSall versions · fixed in 1.7.2-1ubuntu0.1~esm2
  • ruby-samlUbuntu:Pro:16.04:LTSall versions · fixed in 1.1.2-1ubuntu1+esm2
  • ruby-samlDebian:12all versions · no fixed version listed
  • ruby-samlDebian:11all versions · fixed in 1.11.0-1+deb11u2

Full record on NVD

Fix

  1. Update Omniauth omniauth saml to 2.2.3 · 2.1.3 · 1.10.6

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-03
  • CNACVSS 4.09.3known since 2026-10-23
  • NVDCVSS 3.19.8read 2026-10-23
  • CNAweakness (CWE)CWE-347, CWE-436known since 2026-10-23
  • FIRST EPSSEPSS score21.0 %read 2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCRITICAL2025-03-12

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 4.0 vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2025-03-12
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-4vc4-m8qh-g8jm

Frequently asked questions

What is CVE-2025-25291?

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 fix the issue.

Is CVE-2025-25291 actively exploited?

A proof-of-concept exploit exists for CVE-2025-25291, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-25291?

CVE-2025-25291 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running ruby-saml? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record