{"id":"CVE-2022-23517","summary":"Inefficient Regular Expression Complexity in rails-html-sanitizer","details":"rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Certain configurations of rails-html-sanitizer \u003c 1.4.4 use an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue has been patched in version 1.4.4.","aliases":["GHSA-5x79-w82f-gw8w"],"modified":"2026-04-10T04:44:47.021737Z","published":"2022-12-14T16:10:22.304Z","related":["SUSE-SU-2023:3534-1","SUSE-SU-2023:3714-1","openSUSE-SU-2024:12769-1","openSUSE-SU-2024:14175-1","openSUSE-SU-2025:15125-1","openSUSE-SU-2026:10361-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23517.json","cwe_ids":["CWE-1333"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://hackerone.com/reports/1684163"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00012.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23517.json"},{"type":"ADVISORY","url":"https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-5x79-w82f-gw8w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23517"},{"type":"FIX","url":"https://github.com/rails/rails-html-sanitizer/commit/56c61c0cebd1e493e8ad7bca2a0191609a4a6979"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails-html-sanitizer","events":[{"introduced":"0"},{"fixed":"fd63deaeb22e601237d4d4d12014e7ebd410ea9b"}]}],"versions":["v1.0.0","v1.0.1","v1.0.2","v1.0.3","v1.0.4","v1.1.0","v1.2.0","v1.3.0","v1.4.0","v1.4.1","v1.4.2","v1.4.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23517.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"}]}