{"id":"CVE-2023-31606","aliases":["CVE-2023-31606","GHSA-qcm3-vfq5-wfr2"],"related":[],"kind":"vulnerability","state":"published","title":"RedCloth Regular Expression Denial of Service issue","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2023-06-06T00:00:00.000Z","modified":"2026-06-17T05:57:14.023Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.3.3"}],"ecosystem":"RubyGems","package":"RedCloth","purl":"pkg:gem/RedCloth","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","lastAffected":"4.3.2"}],"vendor":"promptworks","product":"redcloth","cpe":"cpe:2.3:a:promptworks:redcloth:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jgarber/redcloth/issues/73","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jgarber/redcloth","tags":["package","product","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/e23e/CVE-2023-31606#readme","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202401-14","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31606","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jgarber/redcloth/commit/8b1327688fef8e6617792054ef299d7bc74c0a1e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31606","url":"https://www.cve.org/CVERecord?id=CVE-2023-31606","licence":"CVE Terms of Use","modified":"2024-08-02T14:53:30.792Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qcm3-vfq5-wfr2","url":"https://github.com/advisories/GHSA-qcm3-vfq5-wfr2","licence":"CC-BY-4.0","modified":"2024-02-16T08:20:39.647Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31606","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31606","licence":"Public domain","modified":"2026-06-17T05:57:14.023Z"}],"updatedAt":"2026-11-25T22:58:24.641Z","epss":{"score":0.01513,"percentile":0.75228,"date":"2026-12-01T12:00:22.000Z"}}