Resource exhaustion in Rubyonrails Rails

CVE-2021-22904

The actionpack ruby gem before 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 suffers from a possible denial of service vulnerability in the Token Authentication logic in Action Controller due to a too permissive regular expression. Impacted code uses `authenticate_or_request_with_http_token` or `authenticate_with_http_token` for request authentication.

Vulnerability class: DoS (Denial of Service)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS: 0.049 (92.0th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 92nd percentile — 92.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-22904: held from 0.050 to 0.049.

EPSS over last 30 days · oldest: 0.050 · newest: 0.049 · change: -0.001

Affected products

  • Rubyonrails Rails
  • Https://github.com/rails/rails — versions Fixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-22904?
CVE-2021-22904 is a high-severity vulnerability in Rubyonrails Rails, classified under Uncontrolled Resource Consumption. CVSS score: 7.5/10. Published 2021-06-11.
How severe is CVE-2021-22904?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2021-22904 known to be exploited?
3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.