Security category icon
Security
Dec 4, 2026

CVE-2026-142592: Rack multipart parser CPU exhaustion

How repeated unknown charset values in multipart requests can tie up Ruby web workers for tens of seconds

Give me the TL;DR
CVE-2026-142592: Rack multipart parser CPU exhaustion

CVE-2026-142592 is a newly published Rack vulnerability affecting the Ruby web server interface package rack. The CVE record was published on December 3, 2026, and GitHub scores it as High severity with a 7.5 score. The issue affects rack versions >= 3.0.0, < 3.1.24 and >= 3.2.0, < 3.2.9. According to the advisory, an unauthenticated attacker can send a relatively small multipart request packed with unknown charset parameters, forcing Rack to repeat expensive encoding lookups and occupy a worker thread for tens of seconds or longer. Patched releases are available upstream, and HeroDevs customers using older Ruby on Rails stacks may already know Rack as part of the application path they need to keep secure.

Affected and unsupported? See Rails NES.

‍

What is CVE-2026-142592?

This vulnerability sits in Rack::Multipart::Parser#tag_multipart_encoding, which handles charset parameters in multipart request parts. When Rack sees a charset value, it calls Encoding.find. For a known encoding that is cheap. For an unknown encoding name, Ruby searches each directory in $LOAD_PATH for an encoding library before failing.

The advisory says Rack catches that failure and falls back to binary, but it does not remember the bad charset value and does not limit how many repeated charset parameters a request can carry. That means an attacker can send one multipart request containing thousands of bogus charset values and make the application repeat the same expensive search work again and again.

GitHub's advisory says the effect is denial of service. In its testing, a single request could keep a worker busy for seconds, and concurrent requests could exhaust the thread pool.

‍

How severe is CVE-2026-142592?

GitHub rates CVE-2026-142592 as High severity with a 7.5 score. The advisory and CVE record both describe it as a network-reachable denial-of-service issue that needs no authentication and no user interaction.

‍

Which Rack versions are affected?

The CVE record says Rack 2.2 is not affected by this denial-of-service condition because the first unknown charset aborts parsing instead of letting the repeated lookups continue.

‍

How to fix or reduce the risk

GitHub says the fixed releases change Rack so Encoding.find is called only for names already present in Encoding.name_list. Unknown values are mapped to binary without searching the load path.

‍

Taking action

Engineering teams running affected Rack releases should treat this as a denial-of-service patching task and move to 3.1.24 or 3.2.9 as soon as their release process allows. If Rack is part of an older Ruby on Rails environment that still needs security support, HeroDevs can help through Rails NES.

Table of Contents
Author
Greg Allen
Chief Technology Officer
Open Source Insights Delivered Monthly