{"id":"CVE-2025-49007","published":"2025-06-04T22:42:52Z","modified":"2025-06-05T14:11:25Z","title":"ReDoS Vulnerability in Rack::Multipart handle_mime_head","vendor":"rack","product":"rack","tier":"tail","description":{"text":"Rack is a modular Ruby web server interface. Starting in version 3.1.0 and prior to version 3.1.16, there is a denial of service vulnerability in the Content-Disposition parsing component of Rack. This is very similar to the previous security issue CVE-2022-44571. Carefully crafted input can cause Content-Disposition header parsing in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is used typically used in multipart parsing. Any applications that parse multipart posts using Rack (virtually all Rails applications) are impacted. Version 3.1.16 contains a patch for the vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00584,"percentile":0.48843,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-47m2-26rw-j2jw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":9.77},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":[">= 3.1.0, < 3.1.16"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-06-05T13:20:37.941173Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":[">=3.1.0, <3.1.16"],"patched":["3.1.16"],"from":["GHSA-47m2-26rw-j2jw"],"provenance":"source"}],"summary":{"text":"A regular-expression denial-of-service flaw in the Content-Disposition parsing component of Rack, the Ruby web server interface, affects Rack versions from 3.1.0 up to but not including 3.1.16, and it impacts any application that parses multipart POST requests through Rack, which includes virtually all Rails applications. A remote attacker with no privileges or user interaction can send specially crafted input that makes this header parsing consume an unexpected amount of time, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:20Z"},"euvd":{"id":"EUVD-2025-16936","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2022-44571","to":"CVE-2025-49007","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This is very similar to the previous security issue CVE-2022-44571.","from":"CVE.org","in":"CVE-2025-49007"}]}],"packageHistory":[{"cve":"CVE-2025-27111","published":"2025-03-04","fixed":"3.1.11","kev":false},{"cve":"CVE-2025-27610","published":"2025-03-10","fixed":"3.1.12","kev":false},{"cve":"CVE-2025-46727","published":"2025-05-07","fixed":"3.1.14","kev":false,"link":{"from":"CVE-2025-46727","to":"CVE-2025-49007","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.14","toFixed":"3.1.16","daysApart":28}]}},{"cve":"CVE-2025-49007","published":"2025-06-04","fixed":"3.1.16","kev":false},{"cve":"CVE-2025-61770","published":"2025-10-07","fixed":"3.2.2","kev":false,"link":{"from":"CVE-2025-49007","to":"CVE-2025-61770","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.16","toFixed":"3.1.17","daysApart":125},{"kind":"same-code","provenance":"machine","files":["lib/rack/multipart/parser.rb"],"commits":["https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f","https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901","https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e","https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e"],"basis":"shared file"}]}},{"cve":"CVE-2025-61771","published":"2025-10-07","fixed":"3.2.2","kev":false,"link":{"from":"CVE-2025-49007","to":"CVE-2025-61771","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.16","toFixed":"3.1.17","daysApart":125},{"kind":"same-code","provenance":"machine","files":["lib/rack/multipart/parser.rb"],"commits":["https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f","https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901","https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e","https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e"],"basis":"shared file"}]}},{"cve":"CVE-2025-61772","published":"2025-10-07","fixed":"3.2.2","kev":false,"link":{"from":"CVE-2025-49007","to":"CVE-2025-61772","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.16","toFixed":"3.1.17","daysApart":125},{"kind":"same-code","provenance":"machine","files":["lib/rack/multipart/parser.rb"],"commits":["https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f","https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901","https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e","https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e"],"basis":"shared file"}]}}],"package":"RubyGems:rack"}}