Inefficient Regular Expression Complexity
CVE-2022-23517
Summary
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Certain configurations of rails-html-sanitizer prior to 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.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- NONE
- HIGH
CWE-1333 - Inefficient Regular Expression Complexity
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.
References
Advisory Timeline
- Published