Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack
  4. ›
  5. CVE-2024-39316

CVE-2024-39316: Rack ReDoS Vulnerability in HTTP Accept Headers Parsing

July 3, 2024 (updated November 5, 2024)

A 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).

References

  • advisory.dw1.io/61
  • github.com/advisories/GHSA-cj83-2ww7-mvq7
  • github.com/rack/rack
  • github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058
  • github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f
  • github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-39316.yml
  • nvd.nist.gov/vuln/detail/CVE-2024-39316

Code Behaviors & Features

Detect and mitigate CVE-2024-39316 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.1.0 before 3.1.5

Fixed versions

  • 3.1.5

Solution

Upgrade to version 3.1.5 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

gem/rack/CVE-2024-39316.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.