CVE-2025-61772
Ruby vulnerability analysis and mitigation

Overview

CVE-2025-61772 is a high-severity vulnerability affecting the Rack multipart parser in multiple versions (<2.2.19, >=3.1 & <3.1.17, >=3.2 & <3.2.2). The vulnerability was discovered and disclosed in October 2025, impacting Rack's multipart parsing functionality. The affected component is Rack::Multipart::Parser, which is used for handling multipart form data in web applications (GitHub Advisory).

Technical details

The vulnerability exists in Rack::Multipart::Parser where it can accumulate unbounded data when a multipart part's header block never terminates with the required blank line (CRLFCRLF). The parser continues appending incoming bytes to memory without a size cap using @sbuf.scan_until(/(.*?\r\n)\r\n/m) operation. If the terminator never appears, it keeps appending data (@sbuf.concat(content)) indefinitely with no limit on accumulated header bytes. The vulnerability has received a CVSS v3.1 score of 7.5 (High), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction (GitHub Advisory).

Impact

The vulnerability allows attackers to send incomplete multipart headers to trigger high memory usage, potentially leading to process termination (Out of Memory) or severe system slowdown. The impact scales with request size limits and concurrency, affecting all applications that handle multipart uploads. This can result in a Denial of Service (DoS) through memory exhaustion (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to patched versions: Rack 2.2.19, 3.1.17, or 3.2.2. These versions implement a cap on per-part header size (64 KiB). For systems that cannot immediately upgrade, it is recommended to restrict maximum request sizes at the proxy or web server layer (e.g., using Nginx clientmaxbodysize). The patches implement BOUNDARYSTARTLIMIT (16KB) and MIMEHEADERBYTESIZELIMIT (64KB) to prevent unbounded memory allocation (GitHub Advisory, GitHub Commit).

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