Denial of Service Vulnerability in Ruby Rack Package - CVE-2024-39316

ruby-rack Updated 03 Oct 2025

Summary

02/07/2024
N/A
No i
Unrated
Not published

UBUNTU-CVE-2024-39316: Rack is a modular Ruby web server interface. Affects ruby-rack versions 1.5.2-1 – 1.5.2-3+deb8u3ubuntu1~esm7. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Ruby Rack is a modular web server interface for Ruby applications, enabling seamless communication between web servers and Ruby frameworks. It is widely used for building web applications due to its flexibility and ease of integration. However, a vulnerability has been identified in versions 3.1.0 to 3.1.4, which can lead to Denial of Service (DoS) attacks when processing certain HTTP headers.

Vulnerability Detail

The vulnerability, identified as CVE-2024-39316, arises from a Regular Expression Denial of Service (ReDoS) issue in the Rack::Request::Helpers module. This flaw allows attackers to exploit the server by sending specially crafted Accept-Encoding or Accept-Language headers, causing excessive processing time and potentially leading to a complete service outage. The issue was not addressed in the main branch until version 3.1.5, despite being fixed in the earlier 3.0 release series.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, consider implementing rate limiting on your server to mitigate the impact of potential DoS attacks. Additionally, validate and sanitize incoming HTTP headers to prevent malicious payloads from being processed.

Conclusion

The CVE-2024-39316 vulnerability in the Ruby Rack package poses a significant risk of Denial of Service attacks. Users are strongly advised to upgrade to version 3.1.5 or later to mitigate this risk. Implementing additional security measures can further protect your applications from potential exploits.

See every vulnerability recorded for ruby-rack →

Share this vulnerability

FAQ

CVE-2024-39316 is a vulnerability in the Ruby Rack package that allows attackers to exploit the server through specially crafted HTTP headers, leading to Denial of Service.

Versions 3.1.0 to 3.1.4 of Ruby Rack are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If left unaddressed, this vulnerability can lead to service outages, making your application unavailable to users.

Utilize tools like Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback