CVE-2025-61771
Ruby vulnerability analysis and mitigation

Overview

CVE-2025-61771 affects Rack, a modular Ruby web server interface, in versions prior to 2.2.19, 3.1.17, and 3.2.2. The vulnerability was discovered and disclosed on October 7, 2025, and involves the Rack::Multipart::Parser component which stores non-file form fields entirely in memory as Ruby String objects, potentially leading to memory exhaustion (GitHub Advisory).

Technical details

The vulnerability exists in the Rack::Multipart::Parser component where non-file form fields (parts without a filename) are stored entirely in memory as Ruby String objects. When processing multipart/form-data requests, file parts are streamed to temporary files, but non-file parts are buffered into memory without size limits. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating it can be exploited remotely with low complexity and requires no privileges or user interaction (GitHub Advisory).

Impact

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). The impact scales with request size and concurrency, potentially causing worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 2.2.19, 3.1.17, and 3.2.2, which enforce a reasonable size cap (2 MiB) for non-file fields. For users unable to upgrade immediately, workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., using Nginx client_max_body_size) and validating and rejecting unusually large form fields at the application level (GitHub Advisory).

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-61919HIGH7.5
  • RubyRuby
  • pcs-snmp
NoYesOct 10, 2025
CVE-2025-61772HIGH7.5
  • RubyRuby
  • gitlab-cng-18.4
NoYesOct 07, 2025
CVE-2025-61771HIGH7.5
  • RubyRuby
  • rhel10::ruby-33
NoYesOct 07, 2025
CVE-2025-61780MEDIUM5.8
  • RubyRuby
  • ruby-rack
NoYesOct 10, 2025
CVE-2025-61921LOW2.7
  • RubyRuby
  • ruby-sinatra
NoYesOct 10, 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