CVE-2017-5946

NameCVE-2017-5946
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-846-1, DSA-3801-1
Debian Bugs856269

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-zip (PTS)bullseye2.0.0-2fixed
sid, trixie, bookworm2.3.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libzip-rubysourcewheezy0.9.4-1+deb7u1DLA-846-1
libzip-rubysource(unstable)(unfixed)
ruby-zipsourcejessie1.1.6-1+deb8u1DSA-3801-1
ruby-zipsource(unstable)1.2.0-1.1856269

Notes

https://github.com/rubyzip/rubyzip/issues/315

Search for package or bug name: Reporting problems