CVE-2021-22904
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rails | RubyGems | 6.1.3.2, 6.0.3.7, 5.2.6, 5.2.4.6 |
| metasploit | Arch Linux | 6.0.48-1 |
| gitlab-gitaly | Arch Linux | 14.1.0-1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 0, 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