CVE-2017-11428: Ruby saml Ruby-SAML Improper Authentication Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-x2fr-v8wf-8wwv
CVSS 7.7
CWE-287
Published
Advisory Summary

CVE-2017-11428 is a HIGH (CVSS 7.7) ruby-saml improper authentication vulnerability vulnerability (CWE-287: Improper Authentication) affecting Ruby saml libraries in the RubyGems ecosystem. The issue involves ruby-saml improper authentication vulnerability. Remediation is available by upgrading affected packages to version 1.7.0.

CVE-2017-11428 at a Glance

CVE Identifier CVE-2017-11428
GHSA Identifier GHSA-x2fr-v8wf-8wwv
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-287: Improper Authentication
Affected Product Ruby saml
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.7

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

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

How to Fix CVE-2017-11428

To remediate this vulnerability, upgrade all affected Ruby 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.

ruby-saml fixed: 1.7.0
Upgrade ruby-saml to 1.7.0
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 ruby-saml

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-11428, inspect your project dependencies for Ruby saml:

inspect dependencies for ruby-saml

Analyze the terminal output to locate any version of Ruby saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.0), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Ruby 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

OneLogin Ruby-SAML 1.6.0 and earlier may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cryptographic signature, allowing the attack to potentially bypass authentication to SAML service providers.

CVE-2017-11428 Affected Ruby saml Versions

1 component(s)
Fixed Versions:
1.7.0
Product / Package Ecosystem Affected Versions Fixed Version
ruby-saml
RubyGems
< 1.7.0
1.7.0

References

Frequently Asked Questions

What is CVE-2017-11428?
CVE-2017-11428 is a security vulnerability in Ruby saml involving Ruby-SAML Improper Authentication vulnerability under CWE-287: Improper Authentication.
Which Ruby saml versions are affected?
Affected versions include releases prior to 1.7.0 across affected packages: ruby-saml.
What version fixes CVE-2017-11428?
Upgrading to 1.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ruby-saml affected?
Yes, ruby-saml is affected in releases prior to 1.7.0. Upgrade your dependency to 1.7.0 or later.
What is the CVSS score of CVE-2017-11428?
CVE-2017-11428 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2017-11428?
CVE-2017-11428 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check RubyGems dependencies for CVE-2017-11428?
Run the dependency tree command: 'inspect dependencies for ruby-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-x2fr-v8wf-8wwv",
  "modified" : "2023-01-24T14:59:07Z",
  "published" : "2019-07-05T21:11:35Z",
  "aliases" : [ "CVE-2017-11428" ],
  "summary" : "Ruby-SAML Improper Authentication vulnerability",
  "details" : "OneLogin Ruby-SAML 1.6.0 and earlier may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cryptographic signature, allowing the attack to potentially bypass authentication to SAML service providers.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "ruby-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-11428"
  }, {
    "type" : "WEB",
    "url" : "https://duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations"
  }, {
    "type" : "WEB",
    "url" : "https://www.kb.cert.org/vuls/id/475445"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:01:42Z",
    "nvd_published_at" : null
  }
}