ghsa-4vc4-m8qh-g8jm
Vulnerability from github
Published
2025-03-12 20:20
Modified
2025-03-20 13:22
Summary
Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential)
Details

Summary

An authentication bypass vulnerability was found in ruby-saml 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.

Impact

This issue may lead to authentication bypass.

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "RubyGems",
            name: "ruby-saml",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "1.12.4",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         package: {
            ecosystem: "RubyGems",
            name: "ruby-saml",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "1.13.0",
                  },
                  {
                     fixed: "1.18.0",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2025-25291",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-347",
         "CWE-436",
      ],
      github_reviewed: true,
      github_reviewed_at: "2025-03-12T20:20:24Z",
      nvd_published_at: "2025-03-12T21:15:42Z",
      severity: "CRITICAL",
   },
   details: "### 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.",
   id: "GHSA-4vc4-m8qh-g8jm",
   modified: "2025-03-20T13:22:47Z",
   published: "2025-03-12T20:20:24Z",
   references: [
      {
         type: "WEB",
         url: "https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm",
      },
      {
         type: "WEB",
         url: "https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv",
      },
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2025-25291",
      },
      {
         type: "WEB",
         url: "https://github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9",
      },
      {
         type: "WEB",
         url: "https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97",
      },
      {
         type: "WEB",
         url: "https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released",
      },
      {
         type: "WEB",
         url: "https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/SAML-Toolkits/ruby-saml",
      },
      {
         type: "WEB",
         url: "https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4",
      },
      {
         type: "WEB",
         url: "https://github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0",
      },
      {
         type: "WEB",
         url: "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-25291.yml",
      },
      {
         type: "WEB",
         url: "https://news.ycombinator.com/item?id=43374519",
      },
      {
         type: "WEB",
         url: "https://portswigger.net/research/saml-roulette-the-hacker-always-wins",
      },
      {
         type: "WEB",
         url: "https://security.netapp.com/advisory/ntap-20250314-0010",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "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",
         type: "CVSS_V4",
      },
   ],
   summary: "Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential)",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.