CVE-2025-61770
Ruby vulnerability analysis and mitigation

Overview

Rack, a modular Ruby web server interface, was found to contain a vulnerability (CVE-2025-61770) in versions prior to 2.2.19, 3.1.17, and 3.2.2. The vulnerability was discovered and disclosed on October 7, 2025, affecting the Rack::Multipart::Parser component. The parser buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit, creating a potential security risk (GitHub Advisory, NVD).

Technical details

The vulnerability exists in the Rack::Multipart::Parser's handling of multipart form data. While searching for the first boundary, the parser appends incoming data into a shared buffer (@sbuf.concat(content)) and scans for the boundary pattern without implementing any size restrictions. This unbounded buffering behavior allows the parser to continue accumulating data indefinitely if the boundary is not found. The vulnerability has been assigned a CVSS v3.1 base 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 a network-accessible vulnerability requiring no privileges or user interaction (GitHub Advisory).

Impact

Remote attackers can exploit this vulnerability to trigger large transient memory spikes by including a long preamble in multipart/form-data requests. The impact scales with allowed request sizes and concurrency, potentially causing worker crashes or severe slowdown due to garbage collection. This can lead to process termination due to out-of-memory (OOM) conditions, effectively creating a denial-of-service situation (GitHub Advisory, Miggo).

Mitigation and workarounds

The primary mitigation is to upgrade to patched versions: 2.2.19, 3.1.17, or 3.2.2, which enforce a preamble size limit (e.g., 16 KiB) or discard preamble data entirely. For systems that cannot be immediately updated, workarounds include limiting total request body size at the proxy or web server level and monitoring memory with per-process limits to prevent OOM conditions (GitHub Advisory, NVD).

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-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 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