# CVE-2019-18978: The rack-cors rubygem may allow directory traveral

Source: https://junglewise.ai/threats/cve-2019-18978-the-rack-cors-rubygem-may-allow-directory-traveral  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-11-15  
License: CC BY 4.0 with a link back

CVE-2019-18978 · Severity: low · CVSS 3.1 · Published 2019-11-15

The rack-cors rubygem may allow directory traveral

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

## Quick answers

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

**How severe is CVE-2019-18978?** Low severity, with a CVSS score of 3.1, published 15 November 2019.

**Which products and versions are affected?** rack-cors (RubyGems) ECOSYSTEM:introduced=0,fixed=1.0.4.

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

**Am I affected by CVE-2019-18978?** Check whether you run rack-cors (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

- rack-cors (RubyGems): upgrade to 1.0.4 or later

  ```sh
  bundle update rack-cors
  ```


## Affected products

- rack-cors (RubyGems) ECOSYSTEM:introduced=0,fixed=1.0.4

## Identifiers

- CVE-2019-18978
- GHSA-pf8f-w267-mq2h

## Related threats

- [Rack CORS Middleware has Insecure File Permissions](https://junglewise.ai/threats/cve-2024-27456-rack-cors-middleware-has-insecure-file-permissions)
- [Missing Regex anchor in Rack-Cors allows malicious third party site to perform CORS request](https://junglewise.ai/threats/cve-2017-11173-missing-regex-anchor-in-rack-cors-allows-malicious-third-party)
