CVE-2024-39316
Rack ReDoS Vulnerability in HTTP Accept Headers Parsing
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.856% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.5 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:57:14.567Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:14.567Z | CVE Program |
| epss | verified | 2026-11-19T16:04:38.699Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:43.599Z | OSV |
| affected | verified | 2026-11-19T12:57:14.567Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:14.567Z | CVE Program |
Affected versions and configuration
rack rack; default status: unknown: >= 3.1.0, < 3.1.5 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "rack",
"product": "rack",
"versions": [
{
"status": "affected",
"version": ">= 3.1.0, < 3.1.5"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-39316",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-07-03T13:50:23.901915Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-07-03T20:09:58.349Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7",
"name": "https://github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f",
"name": "https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058",
"name": "https://github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T04:19:20.629Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-cj83-2ww7-mvq7",
"aliases": [
"CVE-2024-39316"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.1.0"
},
{
"fixed": "3.1.5"
}
]
}
],
"package": {
"name": "rack",
"purl": "pkg:gem/rack",
"ecosystem": "RubyGems"
},
"versions": [
"3.1.0",
"3.1.1",
"3.1.2",
"3.1.3",
"3.1.4"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-cj83-2ww7-mvq7/GHSA-cj83-2ww7-mvq7.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f",
"type": "WEB"
},
{
"url": "https://github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-39316",
"type": "ADVISORY"
},
{
"url": "https://github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058",
"type": "WEB"
},
{
"url": "https://advisory.dw1.io/61",
"type": "WEB"
},
{
"url": "https://github.com/rack/rack",
"type": "PACKAGE"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-39316.yml",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-1333"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2024-07-02T16:15:04Z",
"github_reviewed_at": "2024-07-03T17:03:45Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | RubyGems / package | rack | Not a distribution channel | 3.1.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:43.599ZArchived source JSON
Source publication: 2024-07-03T17:03:45.000Z
Source modification: 2026-02-04T02:42:02.764ZDocument fingerprint
65ea4b0a73ce0ee46c9bed7dea7db065395c496a8fe9af6fec0a4affa0e9df8b - CVE ProgramConsulted: 2026-11-19T12:57:14.567ZArchived source JSON
Source publication: 2024-07-02T15:57:39.107Z
Source modification: 2024-08-02T04:19:20.629ZDocument fingerprint
72c2e5a68edd1a3553cbebb6cc4c85d82103e74c74f5b8d68a70d745ed86ba28 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:38.699ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
b254813e22792d1b2a11f4d85d4f5aea677f6a8ea9afd9fead48fed930e47e43
Official status history
- UNKNOWN → PUBLISHED · · evidence