Rackのマルチパート解析で、細工したリクエストによりサービス拒否の脆弱性
Summary
Rackのマルチパート解析処理に、細工したリクエストでCPUを使い切らせ、サービス拒否に陥らせる脆弱性が見つかりました。影響するのは3.0.0から3.1.24未満、3.2.0から3.2.9未満のRackです。修正版の3.1.24と3.2.9が公開されているため、該当するバージョンを使っている場合は修正版への更新を進めてください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Rackのマルチパート解析処理に、細工したリクエストでCPUを使い切らせ、サービス拒否に陥らせる脆弱性が見つかりました。影響するのは3.0.0から3.1.24未満、3.2.0から3.2.9未満のRackです。修正版の3.1.24と3.2.9が公開されているため、該当するバージョンを使っている場合は修正版への更新を進めてください。
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com
- web github.com