# CVE-2019-8320: RubyGems Delete directory using symlink when decompressing tar

Source: https://junglewise.ai/threats/cve-2019-8320-rubygems-delete-directory-using-symlink-when-decompressing-tar  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-06-20  
License: CC BY 4.0 with a link back

CVE-2019-8320 · Severity: low · CVSS 3 · Published 2019-06-20

RubyGems Delete directory using symlink when decompressing tar

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

## Quick answers

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

**How severe is CVE-2019-8320?** Low severity, with a CVSS score of 3, published 20 June 2019.

**Which products and versions are affected?** rubygems-update (RubyGems) ECOSYSTEM:introduced=2.7.6,fixed=2.7.9.

**Is there a fix for CVE-2019-8320?** Yes. rubygems-update (RubyGems): upgrade to 2.7.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-8320?** Check whether you run rubygems-update (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

- rubygems-update (RubyGems): upgrade to 2.7.9 or later

  ```sh
  bundle update rubygems-update
  ```


## Affected products

- rubygems-update (RubyGems) ECOSYSTEM:introduced=2.7.6,fixed=2.7.9

## Identifiers

- CVE-2019-8320
- GHSA-5x32-c9mf-49cc

## Related threats

- [RubyGems HTTPS to HTTP redirect](https://junglewise.ai/threats/cve-2012-2125-rubygems-https-to-http-redirect)
- [RubyGems does not verify SSL certificate](https://junglewise.ai/threats/cve-2012-2126-rubygems-does-not-verify-ssl-certificate)
- [RubyGems Improper Input Validation vulnerability](https://junglewise.ai/threats/cve-2015-4020-rubygems-improper-input-validation-vulnerability)
- [RubyGems Regular Expression Denial of Service](https://junglewise.ai/threats/cve-2013-4363-rubygems-regular-expression-denial-of-service)
- [RubyGems Path Traversal vulnerability](https://junglewise.ai/threats/cve-2018-1000079-rubygems-path-traversal-vulnerability)
