Skip to content
DoS Disclosed report Intermediate CVE-2023-27539

[CVE-2023-27539] Possible Denial of Service Vulnerability in Rack’s header parsing

Rack's header parsing could take an unexpected amount of time when given carefully crafted input, potentially causing a denial of service. Any application that parses headers using Rack, including virtually all Rails applications, was impacted.

ooooooo_q Follow

Originally disclosed on HackerOne

Bounty$2,540 Medium View original
  • Triaged in 11 hours
  • Fixed in 30 days
  • Paid in 30 days
  • Disclosed after 30 days

Summary by the program

Possible Denial of Service Vulnerability in Rack’s header parsing 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.

Releases The fixed releases are available at the normal locations.

Patches To aid users who aren’t able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

2-2-header-redos.patch - Patch for 2.2 series 3-0-header-redos.patch - Patch for 3.0 series

Credits Thank you ooooooo_q for reporting this!

Full security advisory: https://discuss.rubyonrails.org/t/cve-2023-27539-possible-denial-of-service-vulnerability-in-racks-header-parsing/82466

The report

I made a report and patch at https://hackerone.com/reports/1887373 .

https://discuss.rubyonrails.org/t/cve-2023-27539-possible-denial-of-service-vulnerability-in-racks-header-parsing/82466

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.

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.

The original report as published on HackerOne, by ooooooo_q. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a regular expression used during header parsing was vulnerable to catastrophic backtracking (ReDoS), so certain inputs made parsing take far longer than expected.

Impact

An attacker could send crafted requests that make header parsing take an unexpected amount of time, possibly resulting in a denial of service; the text does not describe any mitigation or limit.

What the attacker needed

Ability to send crafted headers to Rack

The fix

The vulnerability was fixed in Rack versions [redacted] and [redacted], and patches were provided for the 2.2 and 3.0 series.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Rack is a piece of software that many Ruby web applications use to read incoming requests. A flaw meant that a specially formed request could make the server spend a very long time reading its headers, so it could not answer other users. This is called a denial of service: the site becomes slow or unavailable rather than being broken into.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by ooooooo_q

View all

53 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.