CVE-2025-61771Rack's multipart parser buffers large non‑file fields entirely in memory, enabling DoS…
Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, ``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). Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a reasonable size cap for non-file fields (e.g., 2 MiB). Workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., Nginx `client_max_body_size`) and validating and rejecting unusually large form fields at the application level.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, RubyGems, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | ruby-rack | Fixed | 3.1.16-0.1ubuntu0.1 | UBUNTU-CVE-2025-61771 |
| Ubuntu 24.04 | ruby-rack | Fixed | 2.2.7-1ubuntu0.5 | UBUNTU-CVE-2025-61771 |
| Ubuntu 22.04 | ruby-rack | Fixed | 2.1.4-5ubuntu1.2 | UBUNTU-CVE-2025-61771 |
| Ubuntu 20.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-61771 | |
| Ubuntu 18.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-61771 | |
| Ubuntu 16.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-61771 | |
| Ubuntu 14.04 | ruby-rack | Fix pending | UBUNTU-CVE-2025-61771 | |
| Debian 14 | ruby-rack | Fixed | 3.1.18-1 | DEBIAN-CVE-2025-61771 |
| Debian 13 | ruby-rack | Fixed | 3.1.18-1~deb13u1 | DEBIAN-CVE-2025-61771 |
| Debian 12 | ruby-rack | Fixed | 2.2.20-0+deb12u1 | DEBIAN-CVE-2025-61771 |
| Red Hat Enterprise Linux 10 | cockpit-ha-cluster | Fixed | 0:0.12.1-1.el10_1.1 | RHSA-2025:19513 |
| Red Hat Enterprise Linux 10 | pcs | Fixed | 0:0.12.1-1.el10_1.1 | RHSA-2025:19513 |
| Red Hat Enterprise Linux 10 | pcs-snmp | Fixed | 0:0.12.1-1.el10_1.1 | RHSA-2025:19513 |
| Red Hat Enterprise Linux 10 | ruby | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-bundled-gems | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-racc | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs | Fixed | 0:0.11.10-1.el9_7.1 | RHSA-2025:20962 |
| Red Hat Enterprise Linux 9 | pcs-snmp | Fixed | 0:0.11.9-2.el9_6.2 | RHSA-2025:20962 |
| Red Hat Enterprise Linux 9 | ruby | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs | Fixed | 0:0.10.18-2.el8_10.7 | RHSA-2025:19719 |
| Red Hat Enterprise Linux 8 | pcs-snmp | Fixed | 0:0.10.18-2.el8_10.7 | RHSA-2025:19719 |
| Red Hat Enterprise Linux 8 | ruby | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-bundled-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-racc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | pcs | Fixed | 0:0.9.169-3.el7_9.5 | RHSA-2025:21696 |
| Red Hat Enterprise Linux 7 | pcs-snmp | Fixed | 0:0.9.169-3.el7_9.5 | RHSA-2025:21696 |
| Red Hat Enterprise Linux 7 | ruby | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-tcltk | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-rdoc | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-ri | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-static | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-tcltk | Not affected | ||
| AlmaLinux 10 | cockpit-ha-cluster | Fixed | 0.12.1-1.el10_1.1 | ALSA-2025:21036 |
| AlmaLinux 9 | pcs | Fixed | 0.11.10-1.el9_7.1 | ALSA-2025:20962 |
| AlmaLinux 9 | pcs-snmp | Fixed | 0.11.10-1.el9_7.1 | ALSA-2025:20962 |
| AlmaLinux 8 | pcs | Fixed | 0.10.18-2.el8_10.7.alma.1 | ALSA-2025:19719 |
| AlmaLinux 8 | pcs-snmp | Fixed | 0.10.18-2.el8_10.7.alma.1 | ALSA-2025:19719 |
| Rocky Linux 9 | pcs | Fixed | 0:0.11.9-2.el9_6.2 | RLSA-2025:20962 |
| Rocky Linux 8 | pcs | Fixed | 0:0.10.18-2.el8_10.7 | RLSA-2025:19719 |
| RubyGems library | rack | Fixed | 3.2.2 | GHSA-w9pc-fmgc-vxvw |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rack: affected: < 2.2.19, >= 3.1, < 3.1.17, >= 3.2, < 3.2.2
References
- https://github.com/rack/rack/security/advisories/GHSA-w9pc-fmgc-vxvw
- https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e
- https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e
- https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.