GHSA-cvp8-5r8g-fhvq: Omniauth saml Omniauth-saml Vulnerable To Improper Verification Vulnerability

CRITICAL
CVSS 10.0
CWE-347
Published
Advisory Summary

GHSA-cvp8-5r8g-fhvq is a CRITICAL (CVSS 10.0) omniauth-saml vulnerable to improper verification vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Omniauth saml libraries in the RubyGems ecosystem. The issue involves omniauth-saml vulnerable to improper verification of cryptographic signature. Remediation is available by upgrading affected packages to version 2.1.2, 1.10.5, 2.2.1.

GHSA-cvp8-5r8g-fhvq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-cvp8-5r8g-fhvq
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Omniauth saml
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-cvp8-5r8g-fhvq

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.1.2
Upgrade omniauth-saml to 2.1.2
omniauth-saml fixed: 1.10.5
Upgrade omniauth-saml to 1.10.5
omniauth-saml fixed: 2.2.1
Upgrade omniauth-saml to 2.2.1
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-cvp8-5r8g-fhvq, 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.1.2), 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

ruby-saml, the dependent SAML gem of omniauth-saml has a signature wrapping vulnerability in <= v1.12.0 and v1.13.0 to v1.16.0 , see https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2 As a result, omniauth-saml created a [new release](https://github.com/omniauth/omniauth-saml/releases) by upgrading ruby-saml to the patched versions v1.17.

GHSA-cvp8-5r8g-fhvq Affected Omniauth saml Versions

3 component(s)
Fixed Versions:
2.1.21.10.52.2.1
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-saml
RubyGems
≥ 2.0.0
< 2.1.2
2.1.2
omniauth-saml
RubyGems
< 1.10.5
1.10.5
omniauth-saml
RubyGems
≥ 2.2.0
< 2.2.1
2.2.1

References

Frequently Asked Questions

What is GHSA-cvp8-5r8g-fhvq?
GHSA-cvp8-5r8g-fhvq is a security vulnerability in Omniauth saml involving omniauth-saml vulnerable to Improper Verification of Cryptographic Signature under CWE-347: Improper Verification of Cryptographic Signature.
Which Omniauth saml versions are affected?
Affected versions include releases prior to 2.1.2, 1.10.5, 2.2.1 across affected packages: omniauth-saml.
What version fixes GHSA-cvp8-5r8g-fhvq?
Upgrading to 2.1.2, 1.10.5, 2.2.1 (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.1.2, 1.10.5, 2.2.1. Upgrade your dependency to 2.1.2, 1.10.5, 2.2.1 or later.
What is the CVSS score of GHSA-cvp8-5r8g-fhvq?
GHSA-cvp8-5r8g-fhvq has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with GHSA-cvp8-5r8g-fhvq?
GHSA-cvp8-5r8g-fhvq 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-cvp8-5r8g-fhvq?
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-cvp8-5r8g-fhvq",
  "modified" : "2024-09-19T18:25:42Z",
  "published" : "2024-09-11T21:08:26Z",
  "aliases" : [ ],
  "summary" : "omniauth-saml vulnerable to Improper Verification of Cryptographic Signature",
  "details" : "ruby-saml, the dependent SAML gem of omniauth-saml has a signature wrapping vulnerability in <= v1.12.0 and v1.13.0 to v1.16.0 , see https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2 \nAs a result, omniauth-saml created a [new release](https://github.com/omniauth/omniauth-saml/releases) by upgrading ruby-saml to the patched versions v1.17. \n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/omniauth/omniauth-saml/commit/6c681fd082ab3daf271821897a40ab3417382e29"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/omniauth/omniauth-saml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-11T21:08:26Z",
    "nvd_published_at" : null
  }
}