{"id":"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.","aliases":["GHSA-7wjx-3g7j-8584"],"modified":"2026-03-14T10:45:48.475449Z","published":"2021-06-11T16:15:11.517Z","related":["SUSE-SU-2022:2108-1","openSUSE-SU-2024:11317-1","openSUSE-SU-2024:11318-1","openSUSE-SU-2024:11821-1"],"references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210805-0009/"},{"type":"REPORT","url":"https://hackerone.com/reports/1101125"},{"type":"FIX","url":"https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails","events":[{"introduced":"0"},{"fixed":"26126839058bad41120b5d74f3cc06b93baa987e"},{"introduced":"cb0a558f42fc6957fac4d2daa16771b72ff7da6e"},{"fixed":"48661542a2607d55f436438fe21001d262e61fec"},{"introduced":"66cabeda2c46c582d19738e1318be8d59584cc5b"},{"fixed":"c04aff675d4cd3e8a54e0008dbfca10a8832a414"},{"introduced":"914caca2d31bd753f47f9168f2a375921d9e91cc"},{"fixed":"75ac626c4e21129d8296d4206a1960563cc3d4aa"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.2.4.6"},{"introduced":"5.2.5"},{"fixed":"5.2.6"},{"introduced":"6.0.0"},{"fixed":"6.0.3.7"},{"introduced":"6.1.0"},{"fixed":"6.1.3.2"}]}}],"versions":["v5.2.5","v6.0.0","v6.0.1.rc1","v6.0.2","v6.0.2.1","v6.0.2.2","v6.0.2.rc1","v6.0.2.rc2","v6.0.3","v6.0.3.1","v6.0.3.2","v6.0.3.3","v6.0.3.4","v6.0.3.5","v6.0.3.6","v6.0.3.rc1","v6.1.0","v6.1.1","v6.1.2","v6.1.2.1","v6.1.3","v6.1.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22904.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}