CVE-2024-27456

rack-cors (aka Rack CORS Middleware) 2.0.1 has 0666 permissions for the .rb files

Critical · published February 26, 2024

CVSS v3.1
9.1
EPSS
1%
Percentile
55.2
In the wild
Unconfirmed
What it is

🚨 A critical vulnerability is lurking in rack-cors 2.0.1, exposing your .rb files with permissions set to 0666! 🔥 Imagine leaving your diary wide open at a coffee shop, inviting anyone to read your secrets. That's what's happening here with your Ruby files — they’re more accessible than a public park on a sunny day! If an attacker gets access, they could read and even modify your code without breaking a sweat. This could lead to unauthorized changes or even full server compromise, as they manipulate your application to their advantage — absolutely devastating!

Put simply

Imagine leaving your diary wide open at a coffee shop, inviting anyone to read your secrets. That's what's happening here with your Ruby files — they’re more accessible than a public park on a sunny day! This vulnerability stems from overly permissive file permissions (0666) on .rb files, allowing any user to read and write these files, thus compromising the integrity of your application.

What to do

If an attacker gets access, they could read and even modify your code without breaking a sweat. This could lead to unauthorized changes or even full server compromise, as they manipulate your application to their advantage — absolutely devastating! To remediate this, immediately change the file permissions to a more secure setting, such as 0644. Additionally, ensure that your rack-cors version is updated to the latest release, and audit your file permissions regularly to prevent similar issues in the future. You've got this! By taking these actions, you'll reinforce your security and keep your files safe from prying eyes! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00771 · 55.2th percentile
Published
2024-02-26T00:00Z
EPSS history
Timeline
  • 26 FEB 00:00Z
    rack-cors (aka Rack CORS Middleware) 2.0.1 has 0666 permissions for the .rb files
    cvelistv5