CVE-2023-31606: Inefficient Regular Expression Complexity
(updated )
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 →