Critical severity9.8NVD Advisory· Published Feb 27, 2017· Updated May 13, 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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rubyzipRubyGems | < 1.2.1 | 1.2.1 |
Affected products
3cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Patches
1ce4208fdecc2Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- 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
- 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.