CVE-2021-22904: Rubyonrails Rails
High severity, CVSS 7.5. EPSS: 4.9% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Rubyonrails Rails, before 5.2.4.6: fixed in 5.2.4.6
- Rubyonrails Rails, from 5.2.5, before 5.2.6: fixed in 5.2.6
- Rubyonrails Rails, from 6.0.0, before 6.0.3.7: fixed in 6.0.3.7
- Rubyonrails Rails, from 6.1.0, before 6.1.3.2: fixed in 6.1.3.2
Affected products
- Rubyonrails Rails: before 5.2.4.6 (fixed in 5.2.4.6); from 5.2.5, before 5.2.6 (fixed in 5.2.6); from 6.0.0, before 6.0.3.7 (fixed in 6.0.3.7); from 6.1.0, before 6.1.3.2 (fixed in 6.1.3.2)
Affected packages
- actionpack (RubyGems)
Published 2021-06-11. Last modified 2026-06-17.