CVE Professor
/
All CVEs
CVE-2026-142591

CVE-2026-142591 — Rack — CWE-400

MEDIUM CVSS 5.3 ⚡ EPSS 0.6% GitHub

## Summary `Rack::QueryParser` splits query strings and `application/x-www-form-urlencoded` bodies on the regular expression `/& */n`, which also consumes spaces following each `&`. Matching a long run of spaces with this pattern makes Ruby's regular expression engine allocate about 48 bytes of backtracking state per space, so an input consisting of `&` followed by spaces causes the process to allocate roughly 48 times the size of the input. This results in a denial of service condition through memory exhaustion for applications that parse query strings or form bodies. ## Details The separator is defined as: ```ruby DEFAULT_SEP = /& */n COMMON_SEP = { ";" => /; */n, ";," => /[;,] */n, "&" => /& */n } ``` A body of `a=1&` followed by 4 MiB of spaces then `b=2` is one separator match. The match is linear in time (about 20 ms) but allocates about 186 MB of transient memory on top of the 4 MiB input, a factor of 46–48 that holds from 256 KiB (14 MB) to 16 MiB (770 MB). The memory is released after the match, so the peak is set by concurrency: with the default 4 MiB `RACK_QUERY_PARSER_BYTESIZE_LIMIT` and Puma's default of five threads, five concurrent requests reach about 1 GB. Applications that raise the limit for large forms scale accordingly; a 30 MiB body allocates about 1.5 GB. `RACK_QUERY_PARSER_BYTESIZE_LIMIT` bounds the input and therefore the cost per request, but the limit was introduced to cap parsing work at roughly the size of the input, and this multiplies it

## Summary `Rack::QueryParser` splits query strings and `application/x-www-form-urlencoded` bodies on the regular expression `/& */n`, which also consumes spaces following each `&`. Matching a long run of spaces with this pattern makes Ruby's regular expression engine allocate about 48 bytes of backtracking state per space, so an input consisting of `&` followed by spaces causes the process to allocate roughly 48 times the size of the input. This results in a denial of service condition through memory exhaustion for applications that parse query strings or form bodies. ## Details The separator is defined as: ```ruby DEFAULT_SEP = /& */n COMMON_SEP = { ";" => /; */n, ";," => /[;,] */n, "&" => /& */n } ``` A body of `a=1&` followed by 4 MiB of spaces then `b=2` is one separator match. The match is linear in time (about 20 ms) but allocates about 186 MB of transient memory on top of the 4 MiB input, a factor of 46–48 that holds from 256 KiB (14 MB) to 16 MiB (770 MB). The memory is released after the match, so the peak is set by concurrency: with the default 4 MiB `RACK_QUERY_PARSER_BYTESIZE_LIMIT` and Puma's default of five threads, five concurrent requests reach about 1 GB. Applications that raise the limit for large forms scale accordingly; a 30 MiB body allocates about 1.5 GB. `RACK_QUERY_PARSER_BYTESIZE_LIMIT` bounds the input and therefore the cost per request, but the limit was introduced to cap parsing work at roughly the size of the input, and this multiplies it

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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 Low A:L
EPSS — Exploit Prediction Scoring System
0.6%
30-day probability
In the 51. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142591
CVSS 5.3/10 · MEDIUM · 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:L
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary

Rack::QueryParser splits query strings and application/x-www-form-urlencoded bodies on the regular expression /& */n, which also consumes spaces following each &. Matching a long run of spaces with this pattern makes Ruby's regular expression engine allocate about 48 bytes of backtracking state per space, so an input consisting of & followed by spaces causes the process to…
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); reduced availability or partial DoS (A:L).

🛡️ 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
📋 Routine update cycle (30 days)

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

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
5.3 / 10 · CVSS MEDIUM
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