CVE-2023-27539
Ruby vulnerability analysis and mitigation

Overview

A denial of service vulnerability was discovered in rubygem-rack's header parsing component, identified as CVE-2023-27539. The vulnerability affects versions >= 2.0.0 and was fixed in versions 2.2.6.4 and 3.0.6.1. The issue was found in how Rack parses headers, where carefully crafted input can cause header parsing to take an unexpected amount of time (Ruby Rails Discussion, GitHub Advisory).

Technical details

The vulnerability stems from a Regular Expression Denial of Service (ReDoS) issue in the header parsing component. The CVSS v3.1 base score is 5.3 (Moderate), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. The issue affects the parsing of HTTP headers in Rack, which is a fundamental component used by virtually all Rails applications (Red Hat CVE).

Impact

The vulnerability can be exploited to cause a denial of service condition. When exploited, carefully crafted input can cause header parsing to take an unexpected amount of time, potentially disrupting service availability. This affects any applications that parse headers using Rack, which includes most Rails applications (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to the fixed versions: 2.2.6.4 or 3.0.6.1. For systems unable to upgrade immediately, a possible workaround is setting Regexp.timeout in Ruby 3.2. The fix involves modifying how headers are split on commas and stripped to avoid the ReDoS issues (Ruby Rails Discussion).

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-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 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