{"id":"CVE-2025-25291","aliases":["CVE-2025-25291","GHSA-4vc4-m8qh-g8jm","BIT-GITLAB-2025-25291"],"related":[],"kind":"vulnerability","state":"published","title":"ruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn authentication bypass vulnerability was found in ruby-saml due to a parser differential.\nReXML 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.\n\n### Impact\nThis issue may lead to authentication bypass.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-03-12T20:16:12.181Z","modified":"2026-09-08T08:47:44.724Z","severity":{"scorer":"GitHub_M","scheme":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-347","CWE-436"],"affected":[{"ranges":[{"version":"< 1.12.4","status":"affected"},{"version":">= 1.13.0, < 1.18.0","status":"affected"}],"vendor":"SAML-Toolkits","product":"ruby-saml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.12.4"}],"ecosystem":"RubyGems","package":"ruby-saml","purl":"pkg:gem/ruby-saml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.13.0","status":"affected","fixed":"1.18.0"}],"ecosystem":"RubyGems","package":"ruby-saml","purl":"pkg:gem/ruby-saml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.10.6"},{"status":"affected","introduced":"2.0.0","fixed":"2.1.3"},{"status":"affected","introduced":"2.2.0","fixed":"2.2.3"}],"vendor":"omniauth","product":"omniauth_saml","cpe":"cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.12.4"},{"status":"affected","introduced":"1.13.0","fixed":"1.18.0"}],"vendor":"onelogin","product":"ruby-saml","cpe":"cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"storagegrid","cpe":"cpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"17.9.2"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv","tags":["advisory","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://portswigger.net/research/saml-roulette-the-hacker-always-wins","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-329_GHSL-2024-330_ruby-saml","tags":["advisory","third-party-advisory","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20250314-0010/","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://news.ycombinator.com/item?id=43374519","tags":["issue-tracking","report","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00011.html","tags":["web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25291","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-25291.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250314-0010","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-04-03T20:06:31.066Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-25291","url":"https://www.cve.org/CVERecord?id=CVE-2025-25291","licence":"CVE Terms of Use","modified":"2025-11-03T19:44:59.719Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4vc4-m8qh-g8jm","url":"https://github.com/advisories/GHSA-4vc4-m8qh-g8jm","licence":"CC-BY-4.0","modified":"2026-02-04T02:20:43.245Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-25291","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25291","licence":"Public domain","modified":"2026-06-17T09:00:37.610Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2025-25291","url":"https://osv.dev/vulnerability/BIT-GITLAB-2025-25291","licence":"Apache-2.0","modified":"2026-09-08T08:47:44.724Z"}],"updatedAt":"2026-11-25T22:58:55.228Z","epss":{"score":0.34359,"percentile":0.98443,"date":"2026-12-01T12:00:22.000Z"}}