CVE-2024-27456
Ruby vulnerability analysis and mitigation

Overview

rack-cors (aka Rack CORS Middleware) version 2.0.1 contains an insecure file permission vulnerability where .rb files are distributed with 0666 (world-readable and writable) permissions. This vulnerability was discovered on February 22, 2024, and was assigned CVE-2024-27456. The issue specifically affects the rack-cors gem version 2.0.1, while previous versions do not exhibit this problem (GitHub Issue).

Technical details

The vulnerability stems from incorrect default permissions (CWE-276) where the .rb files in the gem's lib/rack/cors directory are set with world-writable permissions (666). This includes critical files such as resource.rb, resources.rb, result.rb, and version.rb. The CVSS v3.1 base score is 9.1 (CRITICAL) with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CISA-ADP).

Impact

The insecure file permissions could lead to unauthorized information disclosure and data tampering, depending on the deployment environment and usage of the affected files. The vulnerability allows any user to read and modify the files, potentially compromising the security of applications using the affected gem (GitHub Issue).

Mitigation and workarounds

The recommended mitigation is to use versions other than 2.0.1 of the rack-cors gem. Version 2.0.2 has been released with fixed permissions. For packaged distributions, such as Debian, the vulnerability does not affect their packages as they correctly set the file permissions during the packaging process (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
GHSA-96qw-h329-v5rgHIGH7.5
  • JavaScriptJavaScript
  • shakapacker
NoYesJan 08, 2026
CVE-2026-22588MEDIUM6.5
  • RubyRuby
  • spree_api
NoYesJan 08, 2026
GHSA-g9jg-w8vm-g96vMEDIUM4.6
  • JavaScriptJavaScript
  • action_text-trix
NoYesDec 31, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management