Critical severity9.8NVD Advisory· Published Feb 27, 2017· Updated Jun 17, 2026
CVE-2017-5946
CVE-2017-5946
Description
The 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rubyzipRubyGems | < 1.2.1 | 1.2.1 |
Affected products
6- ghsa-coords3 versionspkg:gem/rubyzippkg:rpm/opensuse/ruby3.2-rubygem-rubyzip&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/rubygem-rubyzip&distro=openSUSE%20Tumbleweed
< 1.2.1+ 2 more
- (no CPE)range: < 1.2.1
- (no CPE)range: < 2.3.2-1.11
- (no CPE)range: < 2.3.2-1.15
Patches
Vulnerability mechanics
References
9- www.debian.org/security/2017/dsa-3801nvdThird Party AdvisoryWEB
- www.securityfocus.com/bid/96445nvdThird Party AdvisoryVDB Entry
- github.com/advisories/GHSA-gcqq-w6gr-h9j9ghsaADVISORY
- github.com/rubyzip/rubyzip/issues/315nvdThird Party AdvisoryWEB
- github.com/rubyzip/rubyzip/releasesnvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2017-5946ghsaADVISORY
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.ymlghsaWEB
- github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016ghsaWEB
- web.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445ghsaWEB
News mentions
0No linked articles in our index yet.