Advisory

GHSA-c6qg-cjj8-47qp

Also known as: CVE-2023-27539

Summary

Possible Denial of Service Vulnerability in Rack's header parsing

Details

There is a denial of service vulnerability in the header parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2023-27539.

Versions Affected: >= 2.0.0 Not affected: None. Fixed Versions: 2.2.6.4, 3.0.6.1

Impact
Carefully crafted input can cause header parsing in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. Any applications that parse headers using Rack (virtually all Rails applications) are impacted.

Workarounds
Setting Regexp.timeout in Ruby 3.2 is a possible workaround.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2023-03-15 21:36 UTC
Modified
2025-01-09 15:48 UTC

Affected packages and fixes

rack

RubyGems · All systems

Affected

  • introduced 2.0.0, fixed 2.2.6.4 (ecosystem)

Fixed versions

2.2.6.4

Fix

The export has no generic command for this ecosystem.

rack

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 3.0.6.1 (ecosystem)

Fixed versions

3.0.6.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences