Rubyzip gem contains a Directory Traversal vulnerability in zip file component
Published 6 Sept 2018 · 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
- Affected
- <1.2.2
- Fixed in
- 1.2.2
bundle update --conservative rubyzip # Gemfile: '>= 1.2.2'Details
rubyzip gem rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability in Zip::File component that can result in write arbitrary files to the filesystem. This attack appear to be exploitable via If a site allows uploading of .zip files , an attacker can upload a malicious file that contains symlinks or files with absolute pathnames "../" to write arbitrary files to the filesystem..
This is similar to CVE-2017-5946 which was patched in 1.2.1 but the fix in that case was incomplete.
Is GHSA-vqcq-mrmw-mcmg 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-2017-5946Directory traversal vulnerability in RubyZip · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-1000544
- Linkgithub.com/rubyzip/rubyzip/issues/369
- Linkaccess.redhat.com/errata/RHSA-2018:3466
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2018-1000544.yml
- Packagegithub.com/rubyzip/rubyzip
- Linklists.debian.org/debian-lts-announce/2018/08/msg00013.html
- Linklists.debian.org/debian-lts-announce/2020/08/msg00002.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.