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

Critical 9.1 Published Updated

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.

PackageAffectedFixed in
rack-cors RubyGemsFrom 2.0.12.0.2
rack-cors RubyGemsFrom 2.0.12.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.

Is CVE-2024-27456 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free