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

[CVE-2023-22799] Possible ReDoS based DoS vulnerability in GlobalID

The GlobalID gem parses model names with a regular expression that can be made to run for an unexpectedly long time by carefully crafted input. An attacker could use this to cause a denial of service.

ooooooo_q Follow

Originally disclosed on HackerOne

Bounty$480 Low View original
  • Triaged in 32 hours
  • Fixed in 23 days
  • Paid in 23 days
  • Disclosed after 53 days

Summary by the program

There is a ReDoS based DoS vulnerability in the GlobalID gem. This vulnerability has been assigned the CVE identifier CVE-2023-22799.

Versions Affected: >= 0.2.1 Not affected: NOTAFFECTED Fixed Versions: 1.0.1

##Impact There is a possible DoS vulnerability in the model name parsing section of the GlobalID gem. Carefully crafted input can cause the regular expression engine to take an unexpected amount of time. All users running an affected release should either upgrade or use one of the workarounds immediately.

##Releases The FIXED releases are available at the normal locations.

##Workarounds There are no feasible workarounds for this issue.

##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.

  • 1-0-model-name-redos.patch - Patch for 1.0 series

The report

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

https://discuss.rubyonrails.org/t/cve-2023-22799-possible-redos-based-dos-vulnerability-in-globalid/82127

There is a possible DoS vulnerability in the model name parsing section of the GlobalID gem. Carefully crafted input can cause the regular expression engine to take an unexpected amount of time. All users running an affected release should either upgrade or use one of the workarounds immediately.

Impact

ReDoS occurs in Global ID uri parsing. Global ID is supposed to be used in ActiveJob, but it is also used in libraries such as GraphQL Ruby and uses user input.

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 the regular expression used to parse model names in GlobalID has catastrophic backtracking, so certain inputs make it take far longer than expected.

What the attacker needed

Ability to supply input parsed by GlobalID

The fix

The vulnerability was fixed in version 1.0.1, and a patch is provided for the 1.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.

A regular expression is a pattern used to check or extract text. Some patterns can be made to work very slowly by a specially crafted string, which ties up the server and stops it responding to other users. This is called a regular expression denial of service, or ReDoS.

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.