CVE-2024-27456 Rack CORS Middleware has Insecure File Permissions
Local attackers can read source code files due to overly permissive file permissions in the rack-cors Ruby gem.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-27456?
CVE-2024-27456 is a critical vulnerability in n/a, published on 26 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
rack-cors (aka Rack CORS Middleware) 2.0.1 has 0666 permissions for the .rb files.
Weakness: CWE-200
Which versions are affected by CVE-2024-27456?
2 open source packages ship an affected version, including rack-cors. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rack-cors RubyGems | From 2.0.1 | 2.0.2 |
rack-cors RubyGems | From 2.0.1 | 2.0.2 |
Products include Rylabs Rack Cors Middleware.
How do I fix CVE-2024-27456?
Upgrade rack-cors to 2.0.2 or later.
Is CVE-2024-27456 being exploited?
There is no known exploitation of CVE-2024-27456 in the wild and no public exploit code.
Sources
Also known as GHSA-785g-282q-pwvx.