# CVE-2024-27456: Rack CORS Middleware has Insecure File Permissions

Source: https://junglewise.ai/threats/cve-2024-27456-rack-cors-middleware-has-insecure-file-permissions  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-26  
License: CC BY 4.0 with a link back

CVE-2024-27456 · Severity: info · Published 2024-02-26

Rack CORS Middleware has Insecure File Permissions

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

## Quick answers

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

**How severe is CVE-2024-27456?** Informational severity, published 26 February 2024.

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

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

**Am I affected by CVE-2024-27456?** 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 2.0.2 or later

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


## Affected products

- rack-cors (RubyGems) ECOSYSTEM:introduced=2.0.1,fixed=2.0.2

## Identifiers

- CVE-2024-27456
- GHSA-785g-282q-pwvx

## Related threats

- [The rack-cors rubygem may allow directory traveral](https://junglewise.ai/threats/cve-2019-18978-the-rack-cors-rubygem-may-allow-directory-traveral)
- [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)
