CVE Catalog

CVE-2025-61772

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.93%

60th percentile - higher than 60% of all known CVEs

Summary

A vulnerability in Rack (versions prior to 2.2.19, 3.1.17, and 3.2.2) in Rack::Multipart::Parser. When a multipart part's header block never terminates with the required blank line (CRLFCRLF), the parser appends incoming bytes to memory without a size cap. A remote attacker can send incomplete multipart headers to exhaust memory and cause a denial of service (DoS) via process termination (OOM) or severe slowdown.

Risk Assessment

An attacker could remotely exhaust memory of an application using Rack, causing service unavailability or process crashes, affecting all applications handling multipart uploads.

Recommendation

Update Rack to version 2.2.19, 3.1.17, or 3.2.2 (or later). As a workaround, restrict maximum request sizes at the proxy or web server layer (e.g., Nginx client_max_body_size).

Other vulnerabilities in Rack

See all
Original NVD description (English source)

Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, `Rack::Multipart::Parser` can accumulate unbounded data when a multipart part’s header block never terminates with the required blank line (`CRLFCRLF`). The parser keeps appending incoming bytes to memory without a size cap, allowing a remote attacker to exhaust memory and cause a denial of service (DoS). Attackers can send incomplete multipart headers to trigger high memory use, leading to process termination (OOM) or severe slowdown. The effect scales with request size limits and concurrency. All applications handling multipart uploads may be affected. Versions 2.2.19, 3.1.17, and 3.2.2 cap per-part header size (e.g., 64 KiB). As a workaround, restrict maximum request sizes at the proxy or web server layer (e.g., Nginx `client_max_body_size`).

Vulnerability data from NVD (NIST) · CISA KEV · EPSS