{"id":"CVE-2026-34230","published":"2026-04-02T16:41:21Z","modified":"2026-04-03T18:19:00Z","title":"Rack: Quadratic complexity in Rack::Utils.select_best_encoding via wildcard Accept-Encoding header","vendor":"rack","product":"rack","tier":"tail","description":{"text":"Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Utils.select_best_encoding processes Accept-Encoding values with quadratic time complexity when the header contains many wildcard (*) entries. Because this method is used by Rack::Deflater to choose a response encoding, an unauthenticated attacker can send a single request with a crafted Accept-Encoding header and cause disproportionate CPU consumption on the compression middleware path. This results in a denial of service condition for applications using Rack::Deflater. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0051,"percentile":0.36775,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-v569-hp3g-36wr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":7.36},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":["< 2.2.23",">= 3.0.0.beta1, < 3.1.21",">= 3.2.0, < 3.2.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-02T18:56:03.220311Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":["<2.2.23",">=3.0.0.beta1, <3.1.21",">=3.2.0, <3.2.6"],"patched":["2.2.23","3.1.21","3.2.6"],"from":["GHSA-v569-hp3g-36wr"],"provenance":"source"}],"summary":{"text":"The Rack web server interface has a quadratic-complexity flaw in Rack::Utils.select_best_encoding, which processes Accept-Encoding headers containing many wildcard entries inefficiently. An unauthenticated remote attacker can exploit this with a single crafted request, requiring no user interaction or special configuration, to consume disproportionate CPU in the compression path of applications using Rack::Deflater.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:55Z"},"euvd":{"id":"EUVD-2026-18378","exploited":false,"provenance":"source"}}