CVE-2021-22904
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (5.00%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 5.00% probability · 92th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-400
- Affected
- rubyonrails/rails
- Source
- support@hackerone.com
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
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.