CVE-2017-5946 Directory traversal vulnerability in RubyZip

Critical 9.8 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2017-5946?

CVE-2017-5946 is a critical vulnerability in Debian Debian Linux, published on 27 Feb 2017.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2017-5946?

2 open source packages ship an affected version, including rubyzip. It affects 2 products.

PackageAffectedFixed in
rubyzip RubyGemsAll versions1.2.1
rubyzip RubyGemsAll versions1.2.1

Products include Debian Debian Linux, Rubyzip Project Rubyzip.

How do I fix CVE-2017-5946?

Upgrade rubyzip to 1.2.1 or later.

Is CVE-2017-5946 being exploited?

There is no known exploitation of CVE-2017-5946 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-5946, DLA-846-1, DSA-3801-1, GHSA-gcqq-w6gr-h9j9, MGASA-2017-0264, UBUNTU-CVE-2017-5946.

Is CVE-2017-5946 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free