Rack: Multipart parser searches the load path for every unknown part `charset`, allowing denial of service via CPU exhaustion.
- CVE-2026-142592
- GHSA-58mf-c3jj-277p
- EUVD-2026-141927
Description
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.
Text from the CVE.org record.
Recommendation
rack
- If you run 3.2.xupdate to 3.2.9 or laterPatch update: breaking changes are unlikelyrack 3.2.9 on its registry (opens in a new tab)
- If you run a version from 3.0.0 to before 3.1.24update to 3.1.24 or laterMinor version change: check the release notesrack 3.1.24 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
rack
Affected versions Fixed in >= 3.0.0, < 3.1.24 none stated >= 3.2.0, < 3.2.9 none stated rackRubyGems
Affected versions Fixed in from 3.2.0 to before 3.2.9 3.2.9 from 3.0.0 to before 3.1.24 3.1.24
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.