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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*
cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*
cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*
cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*
cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:*

History

01 Aug 2025, 18:54

Type Values Removed Values Added
First Time Omniauth
Omniauth omniauth Saml
Onelogin
Netapp storagegrid
Onelogin ruby-saml
Netapp
CPE cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*
cpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:*
cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
References () https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released - () https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released - Patch
References () https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials - () https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials - Exploit, Third Party Advisory
References () https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9 - () https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9 - Patch
References () https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97 - () https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97 - Patch
References () https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4 - () https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4 - Release Notes
References () https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0 - () https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0 - Release Notes
References () https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm - () https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm - Vendor Advisory
References () https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv - () https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv - Vendor Advisory
References () https://portswigger.net/research/saml-roulette-the-hacker-always-wins - () https://portswigger.net/research/saml-roulette-the-hacker-always-wins - Exploit, Third Party Advisory
References () https://news.ycombinator.com/item?id=43374519 - () https://news.ycombinator.com/item?id=43374519 - Issue Tracking
References () https://security.netapp.com/advisory/ntap-20250314-0010/ - () https://security.netapp.com/advisory/ntap-20250314-0010/ - Third Party Advisory

20 Mar 2025, 14:15

Type Values Removed Values Added
References
  • () https://portswigger.net/research/saml-roulette-the-hacker-always-wins -

15 Mar 2025, 21:15

Type Values Removed Values Added
References
  • () https://news.ycombinator.com/item?id=43374519 -

14 Mar 2025, 10:15

Type Values Removed Values Added
References
  • () https://security.netapp.com/advisory/ntap-20250314-0010/ -
Summary
  • (es) ruby-saml proporciona inicio de sesión único (SSO) con lenguaje de marcado para aserciones de seguridad (SAML) para Ruby. Se detectó una vulnerabilidad de omisión de autenticación en ruby-saml anterior a las versiones 1.12.4 y 1.18.0 debido a una diferencia en el analizador. ReXML y Nokogiri analizan XML de forma diferente; los analizadores pueden generar estructuras de documento completamente distintas a partir de la misma entrada XML. Esto permite a un atacante ejecutar un ataque de envoltura de firma. Este problema puede provocar la omisión de autenticación. Las versiones 1.12.4 y 1.18.0 solucionan el problema.

12 Mar 2025, 22:15

Type Values Removed Values Added
References
  • () https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials -

12 Mar 2025, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-12 21:15

Updated : 2025-08-01 18:54


NVD link : CVE-2025-25291

Mitre link : CVE-2025-25291

CVE.ORG link : CVE-2025-25291


JSON object : View

Products Affected

netapp

  • storagegrid

onelogin

  • ruby-saml

omniauth

  • omniauth_saml
CWE
CWE-347

Improper Verification of Cryptographic Signature

CWE-436

Interpretation Conflict