CriticalGHSA-gcqq-w6gr-h9j9CVE-2017-5946
Directory traversal vulnerability in RubyZip
Published 24 Oct 2017 · Updated 16 Feb 2024
Is your project on an affected rubyzip?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
rubyzipRubyGems
- Affected
- <1.2.1
- Fixed in
- 1.2.1
Update to the fixed version for your release line, for example:
bundle update --conservative rubyzip # Gemfile: '>= 1.2.1'Details
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.
Is GHSA-gcqq-w6gr-h9j9 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rubyzip, and gives you the command that fixes it.
More advisories for rubyzip
- HighCVE-2026-85396rubyzip path traversal vulnerability · 3 Sept 2026
- MediumCVE-2019-16892Rubyzip denial of service · 30 Sept 2019
- CriticalCVE-2018-1000544Rubyzip gem contains a Directory Traversal vulnerability in zip file component · 6 Sept 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-5946
- Linkgithub.com/rubyzip/rubyzip/issues/315
- Linkgithub.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml
- Packagegithub.com/rubyzip/rubyzip
- Linkgithub.com/rubyzip/rubyzip/releases
- Linkweb.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445
- Linkwww.debian.org/security/2017/dsa-3801
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.