{"cve":"CVE-2021-22904","nvd":{"published":"2021-06-11T16:15:11.517","modified":"2026-06-17T03:37:59.707","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400"],"references":["https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869","https://hackerone.com/reports/1101125","https://security.netapp.com/advisory/ntap-20210805-0009/","https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869","https://hackerone.com/reports/1101125"],"products":["rubyonrails:rails"],"source":"nvd","synced_at":"2026-10-19T21:20:07.141963181+00:00"},"epss":{"cve":"CVE-2021-22904","score":0.04868,"percentile":0.92047,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7wjx-3g7j-8584","url":"https://osv.dev/vulnerability/GHSA-7wjx-3g7j-8584","summary":"Possible DoS Vulnerability in Action Controller Token Authentication","modified":"2024-02-16T08:20:03.075990Z","packages":[{"ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=6.0.0 <6.0.3.7"],"fixed":["6.0.3.7"]},{"ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=6.1.0 <6.1.3.2"],"fixed":["6.1.3.2"]},{"ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=5.2.5 <5.2.6"],"fixed":["5.2.6"]},{"ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=4.0.0 <5.2.4.6"],"fixed":["5.2.4.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}