{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-22796","id":"CVE-2023-22796","title":"ReDoS based DoS vulnerability in Active Support's underscore","description":"A regular expression based DoS vulnerability in Active Support <6.1.7.1 and <7.0.4.1. A specially crafted string passed to the underscore method can cause the regular expression engine to enter a state of catastrophic backtracking. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability.","descriptionLong":"A regular expression based DoS vulnerability in Active Support <6.1.7.1 and <7.0.4.1. A specially crafted string passed to the underscore method can cause the regular expression engine to enter a state of catastrophic backtracking. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability.","published":"2023-02-09T00:00:00.000Z","updated":"2026-10-24T13:10:00.147Z","reserved":"2023-01-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"hackerone","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["https://github.com/rails/rails"],"affectedProducts":[{"vendor":"n/a","product":"https://github.com/rails/rails","defaultStatus":null,"versions":[{"version":"6.1.7.1, 7.0.4.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":["<6.1.7.1",">=7.0.0 <7.0.4.1"],"fixed":["6.1.7.1","7.0.4.1"],"advisory":"GHSA-j6gc-792m-qgm2"}],"cwes":["CWE-400","CWE-1333"],"aliases":["GHSA-j6gc-792m-qgm2"],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-22796-possible-redos-based-dos-vulnerability-in-active-supports-underscore/82116","tags":["x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"https://www.debian.org/security/2023/dsa-5372","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240202-0009/","tags":["x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22796","tags":["advisory"]},{"url":"https://github.com/rails/rails/commit/2164d4f6a1bde74b911fe9ba3c8df1b5bf345bf8","tags":["web"]},{"url":"https://github.com/rails/rails/commit/a7cda7e6aa5334ab41b1f4b0f671be931be946ef","tags":["web"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://github.com/rails/rails/releases/tag/v6.1.7.1","tags":["web"]},{"url":"https://github.com/rails/rails/releases/tag/v7.0.4.1","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-22796.yml","tags":["web"]},{"url":"https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.01712,"epssPercentile":0.77872,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-22796","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22796","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-22796","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-j6gc-792m-qgm2","ok":true,"note":"GHSA-j6gc-792m-qgm2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-22796","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["ruby"],"critical":[],"attention":null}