Vulnerability record · CVE-2021-22904 · published 11 June 2021
CVE-2021-22904: Rubyonrails rails uncontrolled resource consumption vulnerability
Rubyonrails · Rails
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.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77 | ExploitMitigationPatchVendor Advisory |
| https://hackerone.com/reports/1101125 | Permissions RequiredThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20210805-0009/ | Third Party Advisory |
| https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77 | ExploitMitigationPatchVendor Advisory |
| https://hackerone.com/reports/1101125 | Permissions RequiredThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20210805-0009/ | Third Party Advisory |
Track CVE-2021-22904 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-22904), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.