CVE-2023-31606
RedCloth Regular Expression Denial of Service issue
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2023-31606- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2023-31606- Updated
- 2026-11-02
EUVDEUVD-2023-1866 No score
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.
- Record
EUVD-2023-1866- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-qcm3-vfq5-wfr2
7.5
RedCloth Regular Expression Denial of Service issue
A Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize_html function of RedCloth gem. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.
- Record
GHSA-qcm3-vfq5-wfr2- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-31606
7.5
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.
- Record
DEBIAN-CVE-2023-31606- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-qcm3-vfq5-wfr2
7.5
RedCloth Regular Expression Denial of Service issue
A Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize_html function of RedCloth gem. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.
- Record
GHSA-qcm3-vfq5-wfr2- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2023-31606
7.5
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.
- Record
UBUNTU-CVE-2023-31606- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2023-31606- Updated
- 2026-11-02
OSVMGASA-2023-0291 No score
Updated ruby-RedCloth packages fix a security vulnerability
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. (CVE-2023-31606)
- Record
MGASA-2023-0291- Updated
- 2026-11-02
OSVUSN-6358-1 No score
ruby-redcloth vulnerability
It was discovered that RedCloth incorrectly handled certain inputs during html sanitisation. An attacker could possibly use this issue to cause a denial of service.
- Record
USN-6358-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
RedClothRubyGems |
before 4.3.3 | 4.3.3 |
ruby-redclothDebian:12 |
All versions, plus listed versions 4.3.2-44.3.3-14.3.4-14.3.4-2 |
None known |
ruby-redclothDebian:13 |
before 4.3.3-1 | 4.3.3-1 |
ruby-redclothDebian:14 |
before 4.3.3-1 | 4.3.3-1 |
ruby-redclothDebian:10 |
before 4.3.2-3+deb10u1, plus listed versions 4.3.2-3 |
4.3.2-3+deb10u1 |
RedClothRubyGems |
before 4.3.3, plus listed versions 3.0.03.0.13.0.23.0.33.0.4 Show 23 moreShow less4.0.04.0.14.0.24.0.34.0.44.1.04.1.14.1.94.2.04.2.14.2.24.2.34.2.44.2.4.pre14.2.4.pre24.2.4.pre34.2.54.2.74.2.84.2.94.3.04.3.14.3.2 |
4.3.3 |
ruby-RedClothMageia:8 |
before 4.3.2-5.1.mga8 | 4.3.2-5.1.mga8 |
ruby-RedClothMageia:9 |
before 4.3.2-7.1.mga9 | 4.3.2-7.1.mga9 |
ruby-redclothUbuntu:Pro:16.04:LTS |
before 4.2.9-5ubuntu0.1~esm1, plus listed versions 4.2.9-5build14.2.9-5build24.2.9-5build34.2.9-5build4 |
4.2.9-5ubuntu0.1~esm1 |
ruby-redclothUbuntu:Pro:18.04:LTS |
before 4.3.2-3ubuntu0.1~esm1, plus listed versions 4.3.2-24.3.2-34.3.2-3build1 |
4.3.2-3ubuntu0.1~esm1 |
ruby-redclothUbuntu:20.04:LTS |
before 4.3.2-3+deb10u1build0.20.04.1, plus listed versions 4.3.2-3build14.3.2-3build2 |
4.3.2-3+deb10u1build0.20.04.1 |
ruby-redclothUbuntu:22.04:LTS |
before 4.3.2-4ubuntu0.22.04.1, plus listed versions 4.3.2-3build24.3.2-3build34.3.2-4 |
4.3.2-4ubuntu0.22.04.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | merbinr/CVE-2023-31606 | 2023-06-03 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-31606 is a high vulnerability (CVSS 7.5) in Promptworks Redcloth, published June 6, 2023. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.51%, the 74th percentile. Fixed in RedCloth 4.3.3.
References
github.com/jgarber/redcloth/issues/73
github.com/jgarber/redcloth
github.com/e23e/CVE-2023-31606
lists.debian.org/debian-lts-announce/2023/07/msg00002.html
security.gentoo.org/glsa/202401-14
nvd.nist.gov/vuln/detail/CVE-2023-31606
Show 11 moreShow less
github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb
github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml
github.com/jgarber/redcloth/commit/8b1327688fef8e6617792054ef299d7bc74c0a1e
github.com/advisories/GHSA-qcm3-vfq5-wfr2
github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31606.json
security-tracker.debian.org/tracker/CVE-2023-31606
advisories.mageia.org/MGASA-2023-0291.html
bugs.mageia.org/show_bug.cgi?id=32284
ubuntu.com/security/notices/USN-6358-1
ubuntu.com/security/CVE-2023-31606
cve.org/CVERecord?id=CVE-2023-31606