CVE-2025-25291: ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby
Affects ruby-samlSource GCVE Database
Not known to be exploited · 33% EPSS · CVSS 9.3 Critical · fixed in 1.7.2-1ubuntu0.1~esm2 : patch ruby-saml as a priority.
Data as of 24 Nov 2026, 21:15 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 9.3 |
|---|
- EPSS
- 33.5% chance of exploitation in 30 days – higher than 98% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.7.2-1ubuntu0.1~esm2, 1.11.0-1ubuntu0.1+esm1, 1.13.0-1ubuntu0.1+esm1 +1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 24.04 LTSruby-samlpkg:deb/ubuntu/ruby-saml?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSruby-samlpkg:deb/ubuntu/ruby-saml?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSruby-samlpkg:deb/ubuntu/ruby-saml?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSruby-samlpkg:deb/ubuntu/ruby-saml?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSruby-samlpkg:deb/ubuntu/ruby-saml?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-25291 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-25291 (opens in a new tab)
- about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released (opens in a new tab)
- github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials (opens in a new tab)
- github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv (opens in a new tab)
- github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9 (opens in a new tab)
- github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97 (opens in a new tab)
- github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4 (opens in a new tab)
- github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0 (opens in a new tab)
- github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm (opens in a new tab)
- ubuntu.com/security/notices/USN-7409-1 (opens in a new tab)