CVE-2023-31606
publishedRedCloth: Regular expression denial of service in sanitize_html function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | buster | ruby-redcloth | Advisory build | 4.3.2-3+deb10u1 | DLA-3480-1 |
| Ubuntu | bionic | ruby-redcloth | Advisory build | 4.3.2-3ubuntu0.1~esm1 | USN-6358-1 |
| Ubuntu | focal | ruby-redcloth | Advisory build | 4.3.2-3+deb10u1build0.20.04.1 | USN-6358-1 |
| Ubuntu | jammy | ruby-redcloth | Advisory build | 4.3.2-4ubuntu0.22.04.1 | USN-6358-1 |
| Ubuntu | xenial | ruby-redcloth | Advisory build | 4.2.9-5ubuntu0.1~esm1 | USN-6358-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- https://github.com/e23e/CVE-2023-31606#readme
- https://github.com/jgarber/redcloth
- https://github.com/jgarber/redcloth/issues/73
- [debian-lts-announce] 20230706 [SECURITY] [DLA 3480-1] ruby-redcloth security update https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html
- GLSA-202401-14 https://security.gentoo.org/glsa/202401-14
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d062b083e25a45313c6fbb9f416353831b73d154ce2acf7523f5af673e333969
- Ingested
- 23 Sep 2026, 08:08:48 UTC
- Source record
- Official CVE record