CVE-2017-5946Rubyzip Project Rubyzip
Critical 9.8 No auth needed
Follow: this CVE · Rubyzip Project · Rubyzip Project Rubyzip We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.4% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Feb 27, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rubyzip.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rubyzip |
< 1.2.1 |
1.2.1 |
gem "rubyzip", ">= 1.2.1" |
Per OSV / GitHub Advisories (GHSA-gcqq-w6gr-h9j9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyzip_project | rubyzip | < 1.2.1 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official advisories
- ruby4.0-rubygem-rubyzip-2.3.2-1.19 on GA media · SUSE · openSUSE-SU-2026:10363-1 · Mar 13, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.debian.org Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- github.com Third Party Advisory
- github.com Third Party Advisory