Inefficient regular expression complexity in Redcloth - CVE-2023-31606
Published: September 13, 2023
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to insufficient input validation when processing untrusted input with a regular expressions within the sanitize_html() function in lib/redcloth/formatters/html.rb. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.
Affected software
Gentoo Linux
Ubuntu
ruby-redcloth (Ubuntu package)
dev-ruby/redcloth
How to mitigate CVE-2023-31606
dev-ruby/redcloth - update to 4.3.2-r5