7.5

CVE-2021-22904: rubyonrails rails Uncontrolled Resource Consumption

Modified
AliasesUBUNTU-CVE-2021-22904DEBIAN-CVE-2021-22904GHSA-7wjx-3g7j-8584
Published 11-06-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-22904 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in rubyonrails rails. EPSS estimates a 4.87% chance of exploitation in the next 30 days, higher than 92.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
4.87%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 5 · Related 2

Timeline

  1. 11-06-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

4.87%

Chance of exploitation in the next 30 days

Percentile

92%

Versus all other CVEs

30-day change

No change 0.00 pp

From 4.87% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (discuss.rubyonrails.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • rails< 2:6.0.3.7+dfsg-1
RubyGems1 product
  • actionpack≥ 6.0.0, < 6.0.3.7 | ≥ 6.1.0, < 6.1.3.2 | ≥ 5.2.5, < 5.2.6 | ≥ 4.0.0, < 5.2.4.6
Rubyonrails1 product
  • rails< 5.2.4.6 | ≥ 5.2.5, < 5.2.6 | ≥ 6.0.0, < 6.0.3.7 | ≥ 6.1.0, < 6.1.3.2
Ubuntu1 product
  • railsAll versions (No fix recorded)

4 vendors · 4 products

References

18 links
Show all 18 references