CVE-2023-31606
HIGH 7.5CVSS 3.1RedCloth 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.
- Published
- 6 Jun 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-qcm3-vfq5-wfr2
- Sources
- NVDJSONOSV GHSA-qcm3-vfq5-wfr2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | promptworks | redclothcpe:2.3:a:promptworks:redcloth:*:*:*:*:*:ruby:*:* |
>= 4.0.0, <= 4.3.2 | |
| OSV | RubyGems | RedCloth | < 4.3.3 | 4.3.3 |
References
- https://github.com/e23e/CVE-2023-31606#readme · Exploit, Third Party Advisory, WEB
- https://github.com/jgarber/redcloth · Product, PACKAGE
- https://github.com/jgarber/redcloth/issues/73 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html · WEB
- https://security.gentoo.org/glsa/202401-14 · 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
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Jun 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jun 2023)