Bug 2221255 (CVE-2023-31606)

Summary: CVE-2023-31606 RedCloth: Regular expression denial of service in sanitize_html function
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: amasferr, mkudlej, tjochec
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
The HTML sanitizer function in Rubygems' Redcloth incorrectly handles regular expression inputs. This issue could allow an attacker to send a malicious regexp to the server and cause a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2221257, 2221256    
Bug Blocks: 2221258    

Description Pedro Sampaio 2023-07-07 16:48:12 UTC
A Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize_html function of redcloth gem v4.0.0. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.

References:

https://github.com/jgarber/redcloth
https://github.com/e23e/CVE-2023-31606#readme
https://github.com/jgarber/redcloth/issues/73
https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html

Comment 1 Pedro Sampaio 2023-07-07 16:48:33 UTC
Created rubygem-RedCloth tracking bugs for this issue:

Affects: epel-all [bug 2221257]
Affects: fedora-all [bug 2221256]