CVE-2021-22904
Last modified
CVE-2021-22904 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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 estimates a 4.81% chance of exploitation in the next 30 days.
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/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Rubyonrails | Rails | < 5.2.4.6 |
| Rubyonrails | Rails | >= 5.2.5, < 5.2.6 |
| Rubyonrails | Rails | >= 6.0.0, < 6.0.3.7 |
| Rubyonrails | Rails | >= 6.1.0, < 6.1.3.2 |
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
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-22904?
How severe is CVE-2021-22904?
How do I fix CVE-2021-22904?
Are you affected by CVE-2021-22904?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
