{"id":"GHSA-qcm3-vfq5-wfr2","summary":"RedCloth Regular Expression Denial of Service issue","details":"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.","aliases":["CVE-2023-31606"],"modified":"2024-02-16T08:20:39.647392Z","published":"2023-06-06T18:30:20Z","database_specific":{"nvd_published_at":"2023-06-06T17:15:14Z","cwe_ids":["CWE-1333"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-06-06T20:27:29Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31606"},{"type":"WEB","url":"https://github.com/jgarber/redcloth/issues/73"},{"type":"WEB","url":"https://github.com/jgarber/redcloth/commit/8b1327688fef8e6617792054ef299d7bc74c0a1e"},{"type":"WEB","url":"https://github.com/e23e/CVE-2023-31606#readme"},{"type":"PACKAGE","url":"https://github.com/jgarber/redcloth"},{"type":"WEB","url":"https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202401-14"}],"affected":[{"package":{"name":"RedCloth","ecosystem":"RubyGems","purl":"pkg:gem/RedCloth"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.3"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.1.0","4.1.1","4.1.9","4.2.0","4.2.1","4.2.2","4.2.3","4.2.4","4.2.4.pre1","4.2.4.pre2","4.2.4.pre3","4.2.5","4.2.7","4.2.8","4.2.9","4.3.0","4.3.1","4.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-qcm3-vfq5-wfr2/GHSA-qcm3-vfq5-wfr2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}