CVE-2017-5946
critical
CVSS v3
9.8
CVSS v4 NEW
โ
VIR risk
9.8
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.
Predictions
Exploit likelihood
97%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | 8.0 | affected | |
| debian | 9.0 | affected | |
| debian | bookworm | fixed | 1.2.0-1.1 |
| debian | bullseye | fixed | 1.2.0-1.1 |
| debian | forky | fixed | 1.2.0-1.1 |
| debian | sid | fixed | 1.2.0-1.1 |
| debian | trixie | fixed | 1.2.0-1.1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| rubyzip_project | rubyzip | {"endExcluding":"1.2.1"} | 1.2.1 |
References
- https://github.com/rubyzip/rubyzip/issues/315
- http://www.debian.org/security/2017/dsa-3801
- http://www.securityfocus.com/bid/96445
- https://github.com/rubyzip/rubyzip/releases
- 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
- https://security-tracker.debian.org/tracker/CVE-2017-5946
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.