CVE-2026-125111: Rack: Multipart parsing allows DoS via unbounded scan buffer growth
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-5v64-555j-wjxm
Summary
Rack's multipart parser suffers from an unbounded scan buffer growth issue, allowing memory exhaustion via specifically crafted multipart requests. Users of the Rack library must update to the latest patched versions to prevent denial of service.
Who is affected
Applications using Rack to parse multipart requests are vulnerable in their default configuration. An unauthenticated attacker can trigger memory exhaustion by constructing requests with multipart boundaries precisely aligned with chunk sizes, forcing the internal buffer to grow proportionally to the total request size.
Exploitability
The vulnerability is rated as High severity with a base score of 7.5, reflecting that it is remotely exploitable without authentication or complex interaction. While the EPSS score is low at 0.004, the CISA KEV database confirms no evidence of active exploitation at this time.
Remediation
- Upgrade to Rack version 2.2.25, 3.1.23, or 3.2.8 as appropriate for your branch.
- Implement request body size limits at the reverse proxy or application firewall level.
- Configure the RACK_MULTIPART_PARSER_BYTESIZE_LIMIT environment variable to constrain the maximum memory usage per request.
How to check your project
- Check the Gemfile.lock file in your Ruby project for the 'rack' gem version.
- Use 'bundle info rack' in the project terminal to verify the currently installed version.
- Compare the installed version against 2.2.25, 3.1.23, and 3.2.8 to determine if an update is required.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | rack |
>= 0, < 2.2.25 | 2.2.25 | bundle update rack |
| RubyGems | rack |
>= 3.0.0, < 3.1.23 | 3.1.23 | bundle update rack |
| RubyGems | rack |
>= 3.2.0, < 3.2.8 | 3.2.8 | bundle update rack |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What specifically triggers the memory growth?
The memory growth occurs when multipart parts are sized and aligned such that chunk boundaries consistently fall within or immediately after part headers, preventing the parser from discarding parsed bytes.
Does this require special privileges to exploit?
No, the attack can be performed by an unauthenticated attacker sending a well-formed multipart request.
Are all file uploads dangerous?
Not necessarily; ordinary file uploads are constrained by existing file part limits, but the vulnerability allows attackers to bypass certain heap growth controls by carefully aligning multipart headers within the buffer.
Original advisory description
References
- WEB https://github.com/rack/rack/security/advisories/GHSA-5v64-555j-wjxm
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-125111
- WEB https://github.com/rack/rack/commit/244e75a840cee0823f86d5d01dc374505a8abed8
- WEB https://github.com/rack/rack/commit/2eaa5b1026a03a43b6537b1a0b233707ba887702
- WEB https://github.com/rack/rack/commit/c9b4698595050838342bd3b5a0fc9ab908065f8f
- PACKAGE https://github.com/rack/rack
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/GHSA-5v64-555j-wjxm.yml
Source records: GHSA-5v64-555j-wjxm (OSV.dev) · EPSS by FIRST, 2026-11-26.