Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack
  4. ›
  5. CVE-2025-61771

CVE-2025-61771: Rack: Multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion)

October 7, 2025 (updated October 13, 2025)

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).

References

  • github.com/advisories/GHSA-w9pc-fmgc-vxvw
  • github.com/rack/rack
  • github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e
  • github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e
  • github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd
  • github.com/rack/rack/security/advisories/GHSA-w9pc-fmgc-vxvw
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-61771.yml
  • nvd.nist.gov/vuln/detail/CVE-2025-61771

Code Behaviors & Features

Detect and mitigate CVE-2025-61771 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.2.19, all versions starting from 3.1 before 3.1.17, all versions starting from 3.2 before 3.2.2

Fixed versions

  • 2.2.19
  • 3.1.17
  • 3.2.2

Solution

Upgrade to versions 2.2.19, 3.1.17, 3.2.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

gem/rack/CVE-2025-61771.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:24 +0000.