VDB

CVE-2021-22904

CVE-2021-22904 PUBLISHED CVSS 8.699999809265137 HIGH

Possible DoS Vulnerability in Action Controller Token Authentication

Record from NVD · Published May 5, 2021

rails is fixed in 6.1.3.2, 6.0.3.7, 5.2.6 and 1 more (RubyGems)

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.

EPSS 4.87% · 92.2th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
railsRubyGems6.1.3.2, 6.0.3.7, 5.2.6, 5.2.4.6
metasploitArch Linux6.0.48-1
gitlab-gitalyArch Linux14.1.0-1

Risk scores

CVSS 4.0
8.699999809265137
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS Score
4.87%
92.2th percentile

Affected products

VendorProductVersions
rubyonrailsrails0, 5.2.5, 6.0.0

Timeline

  • May 5, 2021 CVE Published
  • Jun 12, 2021 EPSS Score (30 in total, the first dated here)
  • Dec 8, 2022 CVE Updated
  • Mar 18, 2026 Security Advisory (3 in total, the first dated here)
  • Jul 17, 2026 Distribution Patch (2 in total, the first dated here)
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-22904
vulnetix vdb fixes CVE-2021-22904

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22904/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›