## Rack: Multipart parser searches the load path for every unknown part `charset`, allowing denial of service via CPU exhaustion

- 種別: advisory
- 重大度: high
- 関連技術: ruby
- CVE: CVE-2026-142592
- 公開日時: 2026-12-03T23:55:28.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-58mf-c3jj-277p)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-58mf-c3jj-277p

影響: rubygems:rack >= 3.0.0, < 3.1.24 → 3.1.24, rubygems:rack >= 3.2.0, < 3.2.9 → 3.2.9
Rack::Multipart::Parser#tag_multipart_encoding calls Encoding.find once for every charset parameter in the Content-Type header of a multipart part. When the name is not a known encoding, Ruby's Encoding.find attempts to load an encoding library of that name, which searches every directory on $LOAD_PATH before failing. Rack rescues the resulting ArgumentError and falls back to binary, does not remember the failure, and does not limit the number of charset parameters a part may carry. An attacker…