CWE
22
Advisory Published
Advisory Published
Updated

CVE-2017-5946: Path Traversal

First published: Mon 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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
rubygems/rubyzip<1.2.1
1.2.1
rubyzip<1.2.1
Debian GNU/Linux=8.0
Debian GNU/Linux=9.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

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

  • How do I fix CVE-2017-5946?

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

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203