Ruby Rack < 2.2.19 / 3.1.x < 3.1.17 / 3.2.x < 3.2.2 Multiple Vulnerabilities

high Nessus Plugin ID 269982

Synopsis

The remote host has a Ruby library installed that is affected by multiple vulnerabilities.

Description

The version of the Rack Ruby library installed on the remote host is prior to 2.2.19, 3.1.x prior to 3.1.17, or 3.2.x prior to 3.2.2. It is, therefore, affected by multiple vulnerabilities:

- Rack::Multipart::Parser buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit. A client can send a large preamble followed by a valid boundary, causing significant memory use and potential process termination due to out-of-memory (OOM) conditions.
(CVE-2025-61770)

- Rack::Multipart::Parser stores non-file form fields (parts without a filename) entirely in memory as Ruby String objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS). (CVE-2025-61771)

- 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).
(CVE-2025-61772)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Rack version 2.2.19, 3.1.17, 3.2.2 or later.

See Also

https://github.com/advisories/GHSA-w9pc-fmgc-vxvw

https://github.com/advisories/GHSA-wpv5-97wm-hp9c

https://github.com/advisories/GHSA-p543-xpfm-54cp

Plugin Details

Severity: High

ID: 269982

File Name: ruby_gem_rack_CVE-2025-61770-61771-61772.nasl

Version: 1.2

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 10/10/2025

Updated: 11/18/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2025-61770

CVSS v3

Risk Factor: High

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Vulnerability Information

CPE: cpe:/a:ruby:rack

Required KB Items: Host/ruby/modules/enumerated

Patch Publication Date: 10/7/2025

Vulnerability Publication Date: 10/7/2025

Reference Information

CVE: CVE-2025-61770, CVE-2025-61771, CVE-2025-61772

IAVB: 2025-B-0167-S