Ubuntu CVE Tracker
UBUNTU-CVE-2021-22904
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | rails | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | rails | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | rails | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | rails | All versions, no fix listed |
| Ubuntu:24.04:LTS | rails | All versions, no fix listed |
| Ubuntu:25.10 | rails | All versions, no fix listed |
| Ubuntu:26.10 | rails | All versions, no fix listed |
| Ubuntu:26.04:LTS | rails | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2021-22904
- https://github.com/rails/rails/commit/eab8c20f3ef6a022c4c11b439b1b22cef1768d5e
- https://github.com/rails/rails/commit/d861fa8ade353390c4419b53a6c6b41f3005b1f2
- https://github.com/rails/rails/commit/3d9e9fdf14e044b3ba66f909582c228a9d4ffb5c
- https://www.cve.org/CVERecord?id=CVE-2021-22904