CVE Professor
/
All CVEs
CVE-2026-142592

CVE-2026-142592 — Rack — CWE-400

HIGH CVSS 7.5 ⚡ EPSS 0.6% GitHub

## Summary `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 can send a part whose `Content-Type` contains thousands of unknown `charset` parameters, and each one costs a full load-path search. This results in a denial of service condition for applications that accept multipart requests. ## Details The relevant code is: ```ruby if k == "charset" encoding = find_encoding(v) end def find_encoding(enc) Encoding.find enc rescue ArgumentError Encoding::BINARY end ``` For a name absent from `Encoding.name_list`, `Encoding.find` calls `load_encoding` in `encoding.c`, which requires `enc/<name>.so` through Ruby's internal loader. The lookup is not cached, is not visible to RubyGems or Bootsnap, and costs roughly 3–5 µs per `$LOAD_PATH` entry: about 30 µs on a bare Ruby, about 500 µs in a Bundler application with 200 load-path entries on macOS, and about 2.5 ms per lookup measured on Linux with 167 entries. Each `;charset=x` costs 10 bytes. Existing limits do not bound the attack: the part limit (`RACK_MULTIPA

## Summary `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 can send a part whose `Content-Type` contains thousands of unknown `charset` parameters, and each one costs a full load-path search. This results in a denial of service condition for applications that accept multipart requests. ## Details The relevant code is: ```ruby if k == "charset" encoding = find_encoding(v) end def find_encoding(enc) Encoding.find enc rescue ArgumentError Encoding::BINARY end ``` For a name absent from `Encoding.name_list`, `Encoding.find` calls `load_encoding` in `encoding.c`, which requires `enc/<name>.so` through Ruby's internal loader. The lookup is not cached, is not visible to RubyGems or Bootsnap, and costs roughly 3–5 µs per `$LOAD_PATH` entry: about 30 µs on a bare Ruby, about 500 µs in a Bundler application with 200 load-path entries on macOS, and about 2.5 ms per lookup measured on Linux with 167 entries. Each `;charset=x` costs 10 bytes. Existing limits do not bound the attack: the part limit (`RACK_MULTIPA

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
EPSS — Exploit Prediction Scoring System
0.6%
30-day probability
In the 52. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142592
CVSS 7.5/10 · HIGH · 02.12.2026
CWE: CWE-400
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary

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 …
Affected: rack

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for rack.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
rack
References & Advisories (4)
Related CVEs
7.4
CVE-2026-145240
### Summary Istio TPROXY mode: mTLS/AuthorizationPolicy bypass via conntrack ESTABLISHED fast path on ephemer
7.1
CVE-2026-144604
PostGIS through 3.7.0 contains an out-of-bounds read vulnerability in RASTER_reclass that allows low-privilege
6.9
CVE-2026-144957
Masterminds html5-php before 2.12.0 contains a denial of service vulnerability that allows remote attackers to
6.9
CVE-2026-144970
APSW through 3.54.1.0 contains an sql injection vulnerability in the shell's _fmt_sql_identifier function that
8.7
CVE-2026-137408
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for
8.7
CVE-2026-145034
Zebra before 7.1.0 contains a denial of service vulnerability that allows a single malicious P2P peer to halt
8.7
CVE-2026-144815
A flaw has been found in EZVIZ CS-C2C and CS-C6c 5.3. This impacts an unknown function of the component RTSP S