Denial of Service Vulnerability in Ruby Rack Package

ruby-rack Updated 02 Oct 2025

Summary

09/02/2023
N/A
Yes i
High
7.5

UBUNTU-CVE-2022-44571: There is a denial of service vulnerability in the Content-Disposition parsingcomponent of Rack fixed in 2.0.9.2, 2.1.4.2, 2.2.4.1, 3.0.0.1. Affects ruby-rack versions < 1.5.2-3+deb8u3ubuntu1~esm6. Fixed in 1.5.2-3+deb8u3ubuntu1~esm6. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Ruby Rack is a modular Ruby web server interface that provides a simple and efficient way to build web applications. It is widely used in Ruby on Rails applications for handling HTTP requests and responses. The package is essential for parsing multipart posts, which are commonly used for file uploads and form submissions. However, a recent vulnerability has been identified that affects the Content-Disposition header parsing, potentially exposing applications to denial of service attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2022-44571, originates from a flaw in the Content-Disposition parsing component of Rack. An attacker can craft a specific input that causes the parsing process to take an unexpectedly long time, leading to a denial of service condition. This issue primarily impacts applications that utilize Rack for multipart post parsing, which includes virtually all Rails applications. The severity of this vulnerability is rated with a CVSS score of 7.5, indicating a high risk to affected systems.

How To Fix

Minimum fixed version

1.5.2-3+deb8u3ubuntu1~esm6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby-rack

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advisable to limit the size of the Content-Disposition header in your application to mitigate the risk of denial of service attacks. This can be done by implementing validation checks on the header size before processing requests.

Conclusion

The Ruby Rack package has a critical denial of service vulnerability that can impact web applications relying on it for multipart post parsing. It is crucial to update to the latest patched versions to mitigate this risk. Implementing temporary workarounds can also help protect applications until updates can be applied.

See every vulnerability recorded for ruby-rack →

Share this vulnerability

FAQ

CVE-2022-44571 is a denial of service vulnerability in the Ruby Rack package that affects the parsing of the Content-Disposition header.

If your application uses Rack for multipart post parsing, it may be susceptible to denial of service attacks, which can disrupt service availability.

Versions prior to the patched releases, including 1.5.2-3+deb8u3ubuntu1~esm6, 1.6.4-3ubuntu0.2+esm4, 1.6.4-4ubuntu0.2+esm4, 2.0.7-2ubuntu0.1+esm3, and 2.1.4-5ubuntu1+esm3, are affected.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file. You can check your application at Vulert Scanner without any signup.

If an immediate update is not possible, implement validation checks on the Content-Disposition header size as a temporary workaround to reduce the risk of denial of service.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.5.2-3+deb8u3ubuntu1~esm6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby-rack

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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