CVE-2026-142592
Rack: Multipart parser searches the load path for every unknown part `charset`, allowing denial of service via CPU exhaustion.
- Severity
- high CVSS 7.5 (v3.1)
- Affects
- rack
- Weakness
- CWE-400: Uncontrolled Resource Consumption
- Published
- 2 December 2026 by GitHub_M
Rack is a modular Ruby web server interface. From 3.0.0 until 3.1.24 and 3.2.9, Rack::Multipart::Parser#tag_multipart_encoding calls Encoding.find for every charset parameter in a multipart part's Content-Type header without first checking Encoding.name_list. For an unknown name, Ruby searches each directory on $LOAD_PATH for an encoding library before raising ArgumentError, and Rack catches the exception without caching the failure or limiting repeated charset parameters. An unauthenticated attacker can send thousands of unknown charset parameters in a relatively small multipart request, occupying a worker thread for tens of seconds or longer, with cost increasing as the application's load path grows. Rack 2.2 is not affected by this denial of service because the first unknown charset aborts parsing. This issue is fixed in versions 3.1.24 and 3.2.9.
Our coverage
We have not written about this one. Know why it matters? Send a tip.