Bug 2221255 (CVE-2023-31606) - CVE-2023-31606 RedCloth: Regular expression denial of service in sanitize_html function
Summary: CVE-2023-31606 RedCloth: Regular expression denial of service in sanitize_htm...
Keywords:
Status: NEW
Alias: CVE-2023-31606
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2221256 2221257
Blocks: 2221258
TreeView+ depends on / blocked
 
Reported: 2023-07-07 16:48 UTC by Pedro Sampaio
Modified: 2023-07-20 18:45 UTC (History)
3 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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]


Note You need to log in before you can comment on or make changes to this bug.