Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. RedCloth
  4. ›
  5. CVE-2023-31606

CVE-2023-31606: Inefficient Regular Expression Complexity

June 6, 2023 (updated July 7, 2023)

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.

References

  • github.com/advisories/GHSA-qcm3-vfq5-wfr2
  • github.com/e23e/CVE-2023-31606
  • github.com/jgarber/redcloth
  • github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb
  • github.com/jgarber/redcloth/issues/73
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml
  • lists.debian.org/debian-lts-announce/2023/07/msg00002.html
  • nvd.nist.gov/vuln/detail/CVE-2023-31606

Code Behaviors & Features

Detect and mitigate CVE-2023-31606 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 4.3.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

gem/RedCloth/CVE-2023-31606.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.