CVE-2026-142592: Rack: Multipart parser searches the load path for every unknown part `charset`, allowing denial of service via CPU exhaustion.

Published Dec 2, 2026
·
Updated

Rack is a modular Ruby web server interface. From 3.0.0 until 3.1.24 and 3.2.9, Rack::Multipart::Parser#tagmultipartencoding calls Encoding.find for every charset parameter in a multipart part's Content-Type header without first checking Encoding.namelist. For an unknown name, Ruby searches each directory on $LOADPATH 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.

Affected Software

1 affected component
rubygems/rack>=3.0.0<3.1.24, >=3.2.0<3.2.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.1.24
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.2.9

Event History

Dec 2, 2026
CVE Published
via MITRE·09:34 PM
Data Sourced
via MITRE·09:34 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Rack deployments are affected?

Rack versions from 3.0.0 up to, but not including, 3.1.24 and 3.2.9 are affected. Rack 2.2 is not affected because parsing stops at the first unknown charset.

2

What must an attacker be able to do to exploit this issue?

An attacker only needs network access to submit a multipart request; authentication and user interaction are not required. The request can include thousands of multipart Content-Type charset parameters with unknown encoding names.

3

What makes the denial of service more severe in some applications?

Each unknown charset can cause Ruby to search every directory in the application's $LOAD_PATH for an encoding library. The CPU cost increases as the load path grows, and a relatively small request can occupy a worker thread for tens of seconds or longer.

4

What versions address the issue?

Upgrade to Rack 3.1.24 or Rack 3.2.9, depending on the supported release line.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203