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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-846-1, DSA-3801-1
NVD severityhigh
Debian Bugs856269

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-zip (PTS)stretch1.2.0-1.1fixed
stretch (security)1.2.0-1.1+deb9u1fixed
buster1.2.2-1fixed
bullseye, sid2.0.0-2fixed

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