{"schemaVersion":3,"id":"CVE-2024-39316","aliases":["GHSA-cj83-2ww7-mvq7"],"status":"published","duplicateOf":null,"title":null,"description":"Rack is a modular Ruby web server interface. Starting in version 3.1.0 and prior to version 3.1.5, Regular Expression Denial of Service (ReDoS) vulnerability exists in the `Rack::Request::Helpers` module when parsing HTTP Accept headers. This vulnerability can be exploited by an attacker sending specially crafted `Accept-Encoding` or `Accept-Language` headers, causing the server to spend excessive time processing the request and leading to a Denial of Service (DoS). The fix for CVE-2024-26146 was not applied to the main branch and thus while the issue was fixed for the Rack v3.0 release series, it was not fixed in the v3.1 release series until v3.1.5. Users of versions on the 3.1 branch should upgrade to version 3.1.5 to receive the fix.","dates":{"published":"2024-07-02T15:57:39.107Z","modified":"2024-08-02T04:19:20.629Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00856,"percentile":0.5774,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00856},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00856,"percentile":0.5774}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00856,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00856,"percentile":0.5774}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"RubyGems","product":"rack","name":"rack","label":"rack","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/rack","purlType":"gem","versions":[{"text":"≥ 3.1.0, < 3.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.1.0, < 3.1.5","eol":null,"hubHref":null},{"vendor":"rack","product":"rack","name":"rack","label":"rack","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.1.0, < 3.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.1.0, < 3.1.5","eol":null,"hubHref":"/vendor/rack/rack"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7","label":"github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f","label":"github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f","hostname":"github.com","tags":["X Refsource MISC","WEB","Not Applicable"]},{"url":"https://github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058","label":"github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39316","label":"nvd.nist.gov/vuln/detail/CVE-2024-39316","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://advisory.dw1.io/61","label":"advisory.dw1.io/61","hostname":"advisory.dw1.io","tags":["WEB"]},{"url":"https://github.com/rack/rack","label":"github.com/rack/rack","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-39316.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-39316.yml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CVE-2024-26146"]},"timeline":[{"kind":"published","date":"2024-07-02T15:57:39.107Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T04:19:20.629Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T05:25:39.533Z","stale":false,"partial":false}}