Skip to content

GHSA-9v8j-x534-2fx3 CVE-2025-66567

Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)

Critical RubyGems
Severity
0.0 / 10
Critical · CVSS 4.0
Exploit chance (EPSS)
0.42%
Chance of exploitation in the next 30 days. Higher than 35.98% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-347 Improper Verification of Cryptographic Signature
Fix
1.18.0
Upgrade ruby-saml to this version or later

Description

Summary

Ruby-saml up to and including 1.12.4, there is an authentication bypass vulnerability because of an incomplete fix for CVE-2025-25292. 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. The vulnerability does not affect the version 1.18.0.

Impact

That allows an attacker to be able to execute a Signature Wrapping attack and bypass the authentication

Affected versions

RubyGems

PackageVulnerableFixed in
ruby-saml
< 1.18.0
1.18.0

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Weakness

CWE-347: Improper Verification of Cryptographic Signature

The product does not verify, or incorrectly verifies, the cryptographic signature for data.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
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-754f-8gm6-c4r2
Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential)
Critical 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
Is this in your code?

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