# CVE-2017-5946: Directory traversal vulnerability in RubyZip

Source: https://junglewise.ai/threats/cve-2017-5946-directory-traversal-vulnerability-in-rubyzip  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-10-24  
License: CC BY 4.0 with a link back

CVE-2017-5946 · Severity: low · CVSS 3.1 · Published 2017-10-24

Directory traversal vulnerability in RubyZip

Technologies: [rubyzip (RubyGems)](https://junglewise.ai/threats/technologies/rubygems-rubyzip). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2017-5946 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2017-5946 being exploited in the wild.

**How severe is CVE-2017-5946?** Low severity, with a CVSS score of 3.1, published 24 October 2017.

**Which products and versions are affected?** rubyzip (RubyGems) ECOSYSTEM:introduced=0,fixed=1.2.1.

**Is there a fix for CVE-2017-5946?** Yes. rubyzip (RubyGems): upgrade to 1.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2017-5946?** Check whether you run rubyzip (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- rubyzip (RubyGems): upgrade to 1.2.1 or later

  ```sh
  bundle update rubyzip
  ```


## Affected products

- rubyzip (RubyGems) ECOSYSTEM:introduced=0,fixed=1.2.1

## Identifiers

- CVE-2017-5946
- GHSA-gcqq-w6gr-h9j9

## Related threats

- [rubyzip path traversal in Entry#extract](https://junglewise.ai/threats/cve-2026-85396-rubyzip-path-traversal-in-entry-extract)
- [Rubyzip denial of service](https://junglewise.ai/threats/cve-2019-16892-rubyzip-denial-of-service)
- [Rubyzip gem contains a Directory Traversal vulnerability in zip file component](https://junglewise.ai/threats/cve-2018-1000544-rubyzip-gem-contains-a-directory-traversal-vulnerability-in-zip)
- [High severity vulnerability that affects rubyzip](https://junglewise.ai/threats/high-severity-vulnerability-that-affects-rubyzip-e963e623)
