GHSA-3q5q-f79q-7hr2: Rubyzip High Severity Vulnerability That Affects Vulnerability
HIGHGHSA-3q5q-f79q-7hr2 is a HIGH high severity vulnerability that affects vulnerability (General Security Weakness) affecting Rubyzip libraries in the RubyGems ecosystem. The issue involves high severity vulnerability that affects rubyzip. Remediation is available by upgrading affected packages to version 1.2.1.
GHSA-3q5q-f79q-7hr2 at a Glance
How to Fix GHSA-3q5q-f79q-7hr2
To remediate this vulnerability, upgrade all affected Rubyzip 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 rubyzip to 1.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rubyzip
How to Check if You Are Affected
To determine whether your application is affected by GHSA-3q5q-f79q-7hr2, inspect your project dependencies for Rubyzip:
inspect dependencies for rubyzip
Analyze the terminal output to locate any version of Rubyzip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.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 Rubyzip, 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-3q5q-f79q-7hr2 Affected Rubyzip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rubyzip
|
RubyGems |
< 1.2.1
|
1.2.1
|
References
Frequently Asked Questions
What is GHSA-3q5q-f79q-7hr2?
Which Rubyzip versions are affected?
What version fixes GHSA-3q5q-f79q-7hr2?
Is rubyzip affected?
What CWE is associated with GHSA-3q5q-f79q-7hr2?
How can I check RubyGems dependencies for GHSA-3q5q-f79q-7hr2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3q5q-f79q-7hr2",
"modified" : "2020-06-16T21:36:51Z",
"published" : "2018-07-31T18:21:46Z",
"withdrawn" : "2020-06-16T20:55:57Z",
"aliases" : [ ],
"summary" : "High severity vulnerability that affects rubyzip",
"details" : "Withdrawn, accidental duplicate publish.\n\nThe Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability. If a site allows uploading of .zip files, an attacker can upload a malicious file that uses \"../\" pathname substrings to write arbitrary files to the filesystem.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rubyzip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-5946"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-3q5q-f79q-7hr2"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:55:57Z",
"nvd_published_at" : null
}
}