GHSA-754f-8gm6-c4r2 BIT-gitlab-2025-25292 CVE-2025-25292
Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential)
- Severity
- 0.0 / 10
- Critical · CVSS 4.0
- Exploit chance (EPSS)
- 65.09%
- Chance of exploitation in the next 30 days. Higher than 99.25% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Fix
1.18.0- Upgrade ruby-saml to this version or later
Description
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.
Affected versions
RubyGems
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
ruby-saml RubyGems → 1.18.0
- bundler
bundle update ruby-saml # Gemfile: gem "ruby-saml", ">= 1.18.0"
Severity breakdown
CVSS 4.0 0.0
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
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality (vulnerable system)
- High
- Integrity (vulnerable system)
- High
- Availability (vulnerable system)
- None
- Confidentiality (subsequent systems)
- None
- Integrity (subsequent systems)
- None
- Availability (subsequent systems)
- None
CVSS 3.1 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-347: Improper Verification of Cryptographic Signature
The product does not verify, or incorrectly verifies, the cryptographic signature for data.
CWE-436: Interpretation Conflict
Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
References
Advisories
Packages
Other links
- github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-754f-8gm6-c4r2
- github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv
- github.com/SAML-Toolkits/ruby-saml/commit/e76c5b36bac40aedbf1ba7ffaaf495be63328cd9
- github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97
- about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released
- github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-pa…
- github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.12.4
- github.com/SAML-Toolkits/ruby-saml/releases/tag/v1.18.0
- github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2025-25292.yml
- lists.debian.org/debian-lts-announce/2025/04/msg00011.html
- news.ycombinator.com/item
- portswigger.net/research/saml-roulette-the-hacker-always-wins
- security.netapp.com/advisory/ntap-20250314-0009
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-9v8j-x534-2fx3 Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential) | Critical | Linked by the source |
| GHSA-x4h9-gwv3-r4m4 Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation | Critical | Also affects ruby-saml |
| GHSA-rrqh-93c8-j966 Ruby SAML DOS vulnerability with large SAML response | Medium | Also affects ruby-saml |
| GHSA-4vc4-m8qh-g8jm Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential) | Critical | Also affects ruby-saml |
| GHSA-92rq-c8cf-prrq Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses | High | Also affects ruby-saml |
| GHSA-jw9c-mfg7-9rx2 SAML authentication bypass via Incorrect XPath selector | Critical | Also affects ruby-saml |
| GHSA-r364-2pj4-pf7f ruby-saml vulnerable to XPath injection | Critical | Also affects ruby-saml |
| GHSA-x2fr-v8wf-8wwv Ruby-SAML Improper Authentication vulnerability | High | Also affects ruby-saml |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor