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.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | Fixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 |
References
- https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869Exploit, Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1101125Permissions Required, Third 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/77869Exploit, Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1101125Permissions Required, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210805-0009/Third Party Advisory
Timeline
- Published
- Jun 11, 2021
- Last modified
- Jun 17, 2026
- NVD status
- Modified