High severity · published Jun 11, 2021
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…
7.5
CVSS
4.9%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.9% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RA
Rails · Rubyonrails
before 5.2.4.6; 5.2.5 before 5.2.6; 6.0.0 before 6.0.3.7; 6.1.0 before 6.1.3.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-22904
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-22904
Exploit
https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869
Permissions Required
https://hackerone.com/reports/1101125
Third Party Advisory
https://security.netapp.com/advisory/ntap-20210805-0009/
More from Rails
7.5
CVE-2019-5418
Rails Ruby on Rails Path Traversal Vulnerability
7.5
CVE-2016-0752
Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 allows…
7.5
CVE-2014-0130
Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in Ruby on Rails before 3.2.18, 4.0.x before 4.0.5, and 4.1.x…
9.8
CVE-2026-33195
Rails Active Storage has possible Path Traversal in DiskService
9.8
CVE-2024-28103
Action Pack is a framework for handling and responding to web requests
