{"schema_version":"1.9.0","id":"CVE-2023-22795","published":"2023-02-09T00:00:00Z","modified":"2026-09-09T03:30:45.805886733Z","aliases":["GHSA-8xww-x3g3-6jcv"],"related":["SUSE-SU-2023:0442-1","SUSE-SU-2023:0444-1","openSUSE-SU-2024:12765-1","openSUSE-SU-2024:14067-1","openSUSE-SU-2025:15110-1"],"details":"A regular expression based DoS vulnerability in Action Dispatch <6.1.7.1 and <7.0.4.1 related to the If-None-Match header. A specially crafted HTTP If-None-Match header can cause the regular expression engine to enter a state of catastrophic backtracking, when on a version of Ruby below 3.2.0. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability All users running an affected release should either upgrade or use one of the workarounds immediately.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails","events":[{"introduced":"0"},{"fixed":"c443466a99f8ed951605fb4993a01de5e41349a4"},{"introduced":"984c3ef2775781d47efa9f541ce570daa2434a80"},{"fixed":"23e0345fe900dfd7edd6e8e5a7a6bd54b2a7d2ed"}],"database_specific":{"cpe":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"6.1.7.1"},{"introduced":"7.0.0"},{"fixed":"7.0.4.1"}],"source":"CPE_RANGE"}}],"versions":["v6.1.7","v7.0.4","v7.0.3","v6.1.5","v7.0.2","v7.0.1","v7.0.0","v6.1.4","v6.1.3","v6.1.2","v6.1.1","v6.1.0","v6.1.0.rc2","v6.1.0.rc1","v6.0.0.beta2","v6.0.0.beta1","v5.1.0.beta1","v5.0.0.beta4","v5.0.0.beta2","v5.0.0.beta1","v4.2.0.beta1","v4.0.0.rc1","v4.0.0.beta1","v3.2.0.rc1","v3.1.0.rc1","v3.1.0.beta1","v3.0.0.beta3","v3.0.0.beta.3","v2.0.1","v2.0.0","v2.0.0_RC2","v2.0.0_RC1","v2.0.0_PR","v1.1.1","v1.1.0","v1.1.0_RC1","v0.14.3","v0.14.1","v0.13.1","v0.13.0","v0.12.0","v0.11.1","v0.11.0","v0.10.1","v0.10.0","v0.9.5","v0.9.4.1","v0.9.4","v0.9.3","v0.9.2","v0.9.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-22795.json"}}],"references":[{"type":"WEB","url":"https://discuss.rubyonrails.org/t/cve-2023-22795-possible-redos-based-dos-vulnerability-in-action-dispatch/82118"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22795.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22795"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240202-0010/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5372"}],"database_specific":{"cna_assigner":"hackerone","cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22795.json","unresolved_ranges":[{"extracted_events":[{"introduced":"6.1.7.1, 7.0.4.1"},{"last_affected":"6.1.7.1, 7.0.4.1"}],"source":"AFFECTED_FIELD"}]}}