CVE-2022-23517: Inefficient Regular Expression Complexity in rails-html-sanitizer
Summary
Certain configurations of rails-html-sanitizer < 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.
Mitigation
Upgrade to rails-html-sanitizer >= 1.4.4.
Severity
The maintainers have evaluated this as High Severity 7.5 (CVSS3.1).
References
- CWE - CWE-1333: Inefficient Regular Expression Complexity (4.9) - https://hackerone.com/reports/1684163
Credit
This vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q).
Other sources
An inefficient Regular Expression vulnerability was found in rubygem rails-html-sanitizer. Certain configurations are susceptible to excessive backtracking, leading to a denial of service through CPU resource consumption.
Certain configurations of rails-html-sanitizer < 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.
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2022-23517.
What is the title of the vulnerability?
The title of the vulnerability is 'An inefficient Regular Expression vulnerability was found in rubygem rails-html-sanitizer.'
What is the severity of CVE-2022-23517?
The severity of CVE-2022-23517 is high.
What is the mitigation for CVE-2022-23517?
The mitigation for CVE-2022-23517 is to upgrade to version 1.4.4 or higher of rails-html-sanitizer.
Which software versions are affected by CVE-2022-23517?
Certain configurations of rails-html-sanitizer < 1.4.4 are affected by CVE-2022-23517.