CVE-2017-5946

critical
Published 2017-02-27 ยท Modified 2024-02-16
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
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 with source_tier=community-verified.

OS impact

OSVersionStatusFixed in
debian debian8.0affected
debian debian9.0affected
debian debianbookwormfixed1.2.0-1.1
debian debianbullseyefixed1.2.0-1.1
debian debianforkyfixed1.2.0-1.1
debian debiansidfixed1.2.0-1.1
debian debiantrixiefixed1.2.0-1.1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsrubyzip<>= 1.2.1>= 1.2.1
ruby RubyGemsrubyzip<1.2.11.2.1

Application impact

VendorProductVersionsFixed
rubyzip_projectrubyzip{"endExcluding":"1.2.1"}1.2.1

References

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.