CVE-2025-61771
Reported by github_m · Published October 7, 2025
rack is fixed in 3.2.2, 3.1.17 and 2.2.19 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rack | RubyGems | 3.2.2, 3.1.17, 2.2.19 |
| logstash-8.19 | Chainguard | 8.19.5-r1 |
| ruby3.4-rails-8.0 | Chainguard | 8.0.3-r1 |
| ruby3.2-rack-2.2 | Wolfi | 2.2.22-r0 |
| gitlab-cng-18.3 | Chainguard | 18.3.4-r0 |
| ruby3.3-rails-8.0 | Chainguard | 8.0.3-r1 |
| pcs-snmp | Amazon Linux | 0.9.169-3.amzn2.3.0.7 |
| logstash-9.0 | Chainguard | 9.0.8-r1 |
| ruby3.2-rails-8.0 | Wolfi | 8.0.3-r1 |
| ruby3.3-rack-2.2 | Wolfi | 2.2.22-r0 |
| ruby3.4-rack-2.2 | Chainguard | 2.2.22-r0 |
| ruby3.2-rails-7.2 | Chainguard | 7.2.2.2-r1 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | < 2.2.19, >= 3.1, < 3.1.17, >= 3.2, < 3.2.2 |
| chainguard | logstash-8.19 | 0 |
| chainguard | ruby3.4-rails-8.0 | 0 |
| wolfi | ruby3.2-rack-2.2 | 0 |
| chainguard | gitlab-cng-18.3 | 0 |
| chainguard | ruby3.3-rails-8.0 | 0 |
| RubyGems | rack | 3.2, 0, 3.1 |
| amazon:2 | pcs-snmp | 0 |
| chainguard | logstash-9.0 | 0 |
| wolfi | ruby3.2-rails-8.0 | 0 |
| wolfi | ruby3.3-rack-2.2 | 0 |
| chainguard | ruby3.4-rack-2.2 | 0 |
| chainguard | ruby3.2-rails-7.2 | 0 |
| chainguard | gitlab-rails-ce-18.1 | 0 |
| wolfi | logstash-9.1 | 0 |
| chainguard | gitlab-cng-18.2 | 0 |
| chainguard | ruby3.2-rack-2.2 | 0 |
| wolfi | gitlab-cng-18.2 | 0 |
| chainguard | logstash-8.18 | 0 |
| rack | rack | 3.1, 3.2, 0 |
…and 13 more
Timeline
- Oct 7, 2025 CVE Published
- Oct 7, 2025 Coalition ESS Score (7 in total, the first dated here)
- Oct 8, 2025 EPSS Score (30 in total, the first dated here)
- Dec 7, 2025 Security Advisory (17 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (16 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-61771
vulnetix vdb fixes CVE-2025-61771
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-61771/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/rack/rack/security/advisories/GHSA-w9pc-fmgc-vxvw x_refsource_CONFIRM
- https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e x_refsource_MISC
- https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e x_refsource_MISC
- https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-61771 advisory
- https://github.com/advisories/GHSA-w9pc-fmgc-vxvw advisory
- https://github.com/rack/rack url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-61771.yml advisory