# CVE-2017-5946

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-02-27 · Modified: 2024-08-05
- Aliases: MGASA-2017-0264, UBUNTU-CVE-2017-5946, DEBIAN-CVE-2017-5946, DLA-846-1, DSA-3801-1, GHSA-gcqq-w6gr-h9j9
- Record: https://cvemate.com/vulnerability/CVE-2017-5946 · JSON: https://cvemate.com/vulnerability/CVE-2017-5946/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 3.398%, percentile 89.213%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libzip-ruby (Debian): \< 0.9.4-1+deb7u1
- debian ruby-zip (Debian): \< 1.2.0-1.1 \| \< 1.1.6-1+deb8u1
- ubuntu ruby-zip (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 8.0 \| 9.0
- RubyGems rubyzip (RubyGems): \< 1.2.1
- mageia ruby-rubyzip (Mageia): \< 1.1.4-3.1.mga5
- mageia ruby-rubyzip (Mageia): \< 1.1.7-1.1.mga6
- rubyzip\_project rubyzip: \< 1.2.1

## References

- <https://github.com/rubyzip/rubyzip/releases>
- <http://www.securityfocus.com/bid/96445>
- <https://github.com/rubyzip/rubyzip/issues/315>
- <http://www.debian.org/security/2017/dsa-3801>
- <https://advisories.mageia.org/MGASA-2017-0264.html>
- <https://bugs.mageia.org/show_bug.cgi?id=21493>
- <https://lists.opensuse.org/opensuse-updates/2017-08/msg00025.html>
- <https://ubuntu.com/security/CVE-2017-5946>
- <https://www.cve.org/CVERecord?id=CVE-2017-5946>
- <https://security-tracker.debian.org/tracker/CVE-2017-5946>
- <https://nvd.nist.gov/vuln/detail/CVE-2017-5946>
- <https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml>
- <https://github.com/rubyzip/rubyzip>
- <https://web.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445>

---

Data as of 2026-12-05T03:47:49.541Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
