# CVE-2023-31606: RedCloth Regular Expression Denial of Service issue

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-06-06T00:00:00.000Z
- Modified: 2026-06-17T05:57:14.023Z
- Also known as: GHSA-qcm3-vfq5-wfr2
- Weaknesses: CWE-1333
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- RedCloth (RubyGems): before 4.3.3
- promptworks redcloth: from 4.0.0 up to 4.3.2

## Every score

- GitHub: 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`
- NVD: 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`

## References

- <https://github.com/jgarber/redcloth/issues/73> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/e23e/CVE-2023-31606#readme> (exploit, third-party-advisory, web)
- <https://github.com/jgarber/redcloth> (package, product)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html> (mailing-list, web)
- <https://security.gentoo.org/glsa/202401-14> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31606> (advisory)
- <https://github.com/jgarber/redcloth/commit/8b1327688fef8e6617792054ef299d7bc74c0a1e> (web)
- <https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml> (web)

## Sources

- CVE List: [CVE-2023-31606](https://www.cve.org/CVERecord?id=CVE-2023-31606), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-qcm3-vfq5-wfr2](https://github.com/advisories/GHSA-qcm3-vfq5-wfr2), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-31606](https://nvd.nist.gov/vuln/detail/CVE-2023-31606), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31606 · Whole record: https://cve.day/CVE-2023-31606.json · Rebuilt by cve.day 2026-11-25T22:58:24.641Z
