GHSA-hw46-3hmr-x9xv: Omniauth saml Omniauth-saml Has Dependency On Ruby-saml Vulnerability

CRITICAL
CWE-347
Published
Advisory Summary

GHSA-hw46-3hmr-x9xv is a CRITICAL omniauth-saml has dependency on ruby-saml vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Omniauth saml libraries in the RubyGems ecosystem. The issue involves omniauth-saml has dependency on ruby-saml version with signature wrapping attack issue. Remediation is available by upgrading affected packages to version 2.2.3, 2.1.3, 1.10.6.

GHSA-hw46-3hmr-x9xv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hw46-3hmr-x9xv
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Omniauth saml
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-hw46-3hmr-x9xv

To remediate this vulnerability, upgrade all affected Omniauth saml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

omniauth-saml fixed: 2.2.3
Upgrade omniauth-saml to 2.2.3
omniauth-saml fixed: 2.1.3
Upgrade omniauth-saml to 2.1.3
omniauth-saml fixed: 1.10.6
Upgrade omniauth-saml to 1.10.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for omniauth-saml

How to Check if You Are Affected

To determine whether your application is affected by GHSA-hw46-3hmr-x9xv, inspect your project dependencies for Omniauth saml:

inspect dependencies for omniauth-saml

Analyze the terminal output to locate any version of Omniauth saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Omniauth saml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary There are 2 new Critical Signature Wrapping Vulnerabilities (CVE-2025-25292, CVE-2025-25291) and a potential DDOS Moderated Vulneratiblity (CVE-2025-25293) affecting ruby-saml, a dependency of omniauth-saml. The fix will be applied to ruby-saml and released 12 March 2025, under version 1.18.0. Please [upgrade](https://github.com/omniauth/omniauth-saml/blob/master/omniauth-saml.gemspec#L16) the ruby-saml requirement to v1.18.0. ### Impact Signature Wrapping Vulnerabilities allows an attacker to impersonate a user.

GHSA-hw46-3hmr-x9xv Affected Omniauth saml Versions

3 component(s)
Fixed Versions:
2.2.32.1.31.10.6
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-saml
RubyGems
≥ 2.2.0
< 2.2.3
2.2.3
omniauth-saml
RubyGems
≥ 2.0.0
< 2.1.3
2.1.3
omniauth-saml
RubyGems
< 1.10.6
1.10.6

References

Frequently Asked Questions

What is GHSA-hw46-3hmr-x9xv?
GHSA-hw46-3hmr-x9xv is a security vulnerability in Omniauth saml involving omniauth-saml has dependency on ruby-saml version with Signature Wrapping Attack issue under CWE-347: Improper Verification of Cryptographic Signature.
Which Omniauth saml versions are affected?
Affected versions include releases prior to 2.2.3, 2.1.3, 1.10.6 across affected packages: omniauth-saml.
What version fixes GHSA-hw46-3hmr-x9xv?
Upgrading to 2.2.3, 2.1.3, 1.10.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omniauth-saml affected?
Yes, omniauth-saml is affected in releases prior to 2.2.3, 2.1.3, 1.10.6. Upgrade your dependency to 2.2.3, 2.1.3, 1.10.6 or later.
What CWE is associated with GHSA-hw46-3hmr-x9xv?
GHSA-hw46-3hmr-x9xv is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check RubyGems dependencies for GHSA-hw46-3hmr-x9xv?
Run the dependency tree command: 'inspect dependencies for omniauth-saml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hw46-3hmr-x9xv",
  "modified" : "2025-05-22T17:13:51Z",
  "published" : "2025-03-12T19:42:58Z",
  "aliases" : [ ],
  "summary" : "omniauth-saml has dependency on ruby-saml version with Signature Wrapping Attack issue",
  "details" : "### Summary\nThere are 2 new Critical Signature Wrapping Vulnerabilities (CVE-2025-25292, CVE-2025-25291) and a potential DDOS Moderated Vulneratiblity (CVE-2025-25293) affecting ruby-saml, a dependency of omniauth-saml.\n\nThe fix will be applied to ruby-saml and released 12 March 2025, under version 1.18.0.\n\nPlease [upgrade](https://github.com/omniauth/omniauth-saml/blob/master/omniauth-saml.gemspec#L16) the ruby-saml requirement to v1.18.0.\n\n### Impact\nSignature Wrapping Vulnerabilities allows an attacker to impersonate a user.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-hw46-3hmr-x9xv"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/commit/0d5eaa0d808acb2ac96deadf5c750ac1cf2d92b5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/commit/2c8a482801808bbcb0188214bde74680b8018a35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/commit/7a348b49083462a566af41a5ae85e9f3af15b985"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/omniauth/omniauth-saml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/blob/master/omniauth-saml.gemspec#L16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-hw46-3hmr-x9xv.yml"
  }, {
    "type" : "WEB",
    "url" : "https://rubygems.org/gems/omniauth-saml/versions/2.2.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-12T19:42:58Z",
    "nvd_published_at" : null
  }
}