GHSA-r4x3-g983-9g48: Sprockets Moderate Severity Vulnerability That Affects Vulnerability
MODERATEGHSA-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
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.
Upgrade sprockets to 2.7.1
Upgrade sprockets to 2.0.5
Upgrade sprockets to 2.1.4
Upgrade sprockets to 2.2.3
Upgrade sprockets to 2.4.6
Upgrade sprockets to 2.5.1
Upgrade sprockets to 2.8.3
Upgrade sprockets to 2.9.4
Upgrade sprockets to 2.10.2
Upgrade sprockets to 2.11.3
Upgrade sprockets to 2.12.3
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
GHSA-r4x3-g983-9g48 Affected Sprockets Versions
11 component(s)| 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?
Which Sprockets versions are affected?
What version fixes GHSA-r4x3-g983-9g48?
Is sprockets affected?
What CWE is associated with GHSA-r4x3-g983-9g48?
How can I check RubyGems dependencies for GHSA-r4x3-g983-9g48?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}