Denial of Service Vulnerability in ActionPack Ruby Gem by Ruby on Rails
CVE-2021-22904
7.5HIGH
What is CVE-2021-22904?
A vulnerability exists in the ActionPack Ruby gem that could allow an attacker to exploit a weakness in the Token Authentication logic within Action Controller. This vulnerability arises from an overly permissive regular expression utilized in authentication methods such as authenticate_or_request_with_http_token and authenticate_with_http_token. Exploiting this flaw could potentially lead to a denial of service, undermining the application’s availability. It is recommended that users upgrade to the latest secure versions to mitigate any risk.
Affected Version(s)
https://github.com/rails/rails Fixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6
