CVE-2017-5946: Path Traversal

Published Feb 27, 2017
·
Updated

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.

Other sources

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.

Affected Software

4 affected componentsFixes available
rubygems/rubyzip<1.2.1
1.2.1
Rubyzip Project Rubyzip Ruby<1.2.1
Debian Debian Linux=8.0
Debian Debian Linux=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/rubyzip to a version that resolves this vulnerability.

    Fixed in 1.2.1

Event History

Feb 27, 2017
CVE Published
via MITRE·07:25 AM
Data Sourced
via MITRE·07:25 AM
Description
Data Sourced
via NVD·07:59 AM
DescriptionSeverityWeaknessAffected Software
Oct 24, 2017
Advisory Published
06:33 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-5946?

CVE-2017-5946 is considered a high-severity vulnerability due to its ability to allow arbitrary file writing via directory traversal.

2

How do I fix CVE-2017-5946?

To fix CVE-2017-5946, upgrade the rubyzip gem to version 1.2.1 or later.

3

What is the impact of CVE-2017-5946 on my application?

The impact of CVE-2017-5946 can allow an attacker to overwrite arbitrary files on the filesystem, potentially leading to data loss or compromise.

4

Which versions of Ruby are affected by CVE-2017-5946?

CVE-2017-5946 affects versions of the rubyzip gem before 1.2.1 irrespective of the Ruby version in use.

5

Is my operating system affected by CVE-2017-5946?

Yes, users of Debian Linux 8.0 and 9.0 with the vulnerable rubyzip gem installed are affected by CVE-2017-5946.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203