Inefficient regular expression complexity in Redcloth - CVE-2023-31606

 

Inefficient regular expression complexity in Redcloth - CVE-2023-31606

Published: September 13, 2023


Vulnerability identifier: #VU80753
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-31606
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Redcloth
Gentoo Linux
Ubuntu
ruby-redcloth (Ubuntu package)
dev-ruby/redcloth

How to mitigate CVE-2023-31606

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

ruby-redcloth (Ubuntu package) - addressed in versions Ubuntu Pro, 4.3.2-3+deb10u1build0.20.04.1, 4.3.2-4ubuntu0.22.04.1, 4.3.2-4ubuntu0.23.04.1
dev-ruby/redcloth - update to 4.3.2-r5

External References

Related Security Bulletins