GHSA-r4x3-g983-9g48: Sprockets Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Published
Advisory Summary

GHSA-r4x3-g983-9g48 is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Sprockets libraries in the RubyGems ecosystem. The issue involves moderate severity vulnerability that affects sprockets. Remediation is available by upgrading affected packages to version 2.7.1, 2.0.5, 2.1.4, 2.2.3, 2.4.6, 2.5.1, 2.8.3, 2.9.4, 2.10.2, 2.11.3, 2.12.3.

GHSA-r4x3-g983-9g48 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-r4x3-g983-9g48
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Sprockets
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-r4x3-g983-9g48

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

sprockets fixed: 2.7.1
Upgrade sprockets to 2.7.1
sprockets fixed: 2.0.5
Upgrade sprockets to 2.0.5
sprockets fixed: 2.1.4
Upgrade sprockets to 2.1.4
sprockets fixed: 2.2.3
Upgrade sprockets to 2.2.3
sprockets fixed: 2.4.6
Upgrade sprockets to 2.4.6
sprockets fixed: 2.5.1
Upgrade sprockets to 2.5.1
sprockets fixed: 2.8.3
Upgrade sprockets to 2.8.3
sprockets fixed: 2.9.4
Upgrade sprockets to 2.9.4
sprockets fixed: 2.10.2
Upgrade sprockets to 2.10.2
sprockets fixed: 2.11.3
Upgrade sprockets to 2.11.3
sprockets fixed: 2.12.3
Upgrade sprockets to 2.12.3
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 sprockets

How to Check if You Are Affected

To determine whether your application is affected by GHSA-r4x3-g983-9g48, inspect your project dependencies for Sprockets:

inspect dependencies for sprockets

Analyze the terminal output to locate any version of Sprockets in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.1), 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 General Security Weakness. In Sprockets, 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

Withdrawn, accidental duplicate publish. Multiple directory traversal vulnerabilities in server.rb in Sprockets before 2.0.5, 2.1.x before 2.1.4, 2.2.x before 2.2.3, 2.3.x before 2.3.3, 2.4.x before 2.4.6, 2.5.x before 2.5.1, 2.6.x and 2.7.x before 2.7.1, 2.8.x before 2.8.3, 2.9.x before 2.9.4, 2.10.x before 2.10.2, 2.11.x before 2.11.3, 2.12.x before 2.12.3, and 3.x before 3.0.0.beta.3, as distributed with Ruby on Rails 3.x and 4.x, allow remote attackers to determine the existence of files outside the application root via a ../ (dot dot slash) sequence with (1) double slashes or (2) URL encoding.

GHSA-r4x3-g983-9g48 Affected Sprockets Versions

11 component(s)
Fixed Versions:
2.7.12.0.52.1.42.2.32.4.62.5.12.8.32.9.42.10.22.11.32.12.3
Product / Package Ecosystem Affected Versions Fixed Version
sprockets
RubyGems
≥ 2.6.0
< 2.7.1
2.7.1
sprockets
RubyGems
< 2.0.5
2.0.5
sprockets
RubyGems
≥ 2.1.0
< 2.1.4
2.1.4
sprockets
RubyGems
≥ 2.2.0
< 2.2.3
2.2.3
sprockets
RubyGems
≥ 2.4.0
< 2.4.6
2.4.6
sprockets
RubyGems
≥ 2.5.0
< 2.5.1
All 1 versions
2.5.0
2.5.1
sprockets
RubyGems
≥ 2.8.0
< 2.8.3
2.8.3
sprockets
RubyGems
≥ 2.9.0
< 2.9.4
2.9.4
sprockets
RubyGems
≥ 2.10.0
< 2.10.2
2.10.2
sprockets
RubyGems
≥ 2.11.0
< 2.11.3
2.11.3
sprockets
RubyGems
≥ 2.12.0
< 2.12.3
2.12.3

References

Frequently Asked Questions

What is GHSA-r4x3-g983-9g48?
GHSA-r4x3-g983-9g48 is a security vulnerability in Sprockets involving Moderate severity vulnerability that affects sprockets under General Security Weakness.
Which Sprockets versions are affected?
Affected versions include releases prior to 2.7.1, 2.0.5, 2.1.4, 2.2.3, 2.4.6, 2.5.1, 2.8.3, 2.9.4, 2.10.2, 2.11.3, 2.12.3 across affected packages: sprockets.
What version fixes GHSA-r4x3-g983-9g48?
Upgrading to 2.7.1, 2.0.5, 2.1.4, 2.2.3, 2.4.6, 2.5.1, 2.8.3, 2.9.4, 2.10.2, 2.11.3, 2.12.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sprockets affected?
Yes, sprockets is affected in releases prior to 2.7.1, 2.0.5, 2.1.4, 2.2.3, 2.4.6, 2.5.1, 2.8.3, 2.9.4, 2.10.2, 2.11.3, 2.12.3. Upgrade your dependency to 2.7.1, 2.0.5, 2.1.4, 2.2.3, 2.4.6, 2.5.1, 2.8.3, 2.9.4, 2.10.2, 2.11.3, 2.12.3 or later.
What CWE is associated with GHSA-r4x3-g983-9g48?
GHSA-r4x3-g983-9g48 is classified under General Security Weakness.
How can I check RubyGems dependencies for GHSA-r4x3-g983-9g48?
Run the dependency tree command: 'inspect dependencies for sprockets'. 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-r4x3-g983-9g48",
  "modified" : "2021-12-03T14:21:10Z",
  "published" : "2018-10-10T17:29:34Z",
  "withdrawn" : "2020-06-17T16:30:54Z",
  "aliases" : [ ],
  "summary" : "Moderate severity vulnerability that affects sprockets",
  "details" : "Withdrawn, accidental duplicate publish.\n\nMultiple directory traversal vulnerabilities in server.rb in Sprockets before 2.0.5, 2.1.x before 2.1.4, 2.2.x before 2.2.3, 2.3.x before 2.3.3, 2.4.x before 2.4.6, 2.5.x before 2.5.1, 2.6.x and 2.7.x before 2.7.1, 2.8.x before 2.8.3, 2.9.x before 2.9.4, 2.10.x before 2.10.2, 2.11.x before 2.11.3, 2.12.x before 2.12.3, and 3.x before 3.0.0.beta.3, as distributed with Ruby on Rails 3.x and 4.x, allow remote attackers to determine the existence of files outside the application root via a ../ (dot dot slash) sequence with (1) double slashes or (2) URL encoding.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.7.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.1"
      } ]
    } ],
    "versions" : [ "2.5.0" ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.8.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.9.0"
      }, {
        "fixed" : "2.9.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.11.0"
      }, {
        "fixed" : "2.11.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sprockets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.12.0"
      }, {
        "fixed" : "2.12.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7819"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-r4x3-g983-9g48"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-17T16:30:54Z",
    "nvd_published_at" : null
  }
}