CVE-2023-31606
RedCloth Regular Expression Denial of Service issue
Reported by mitre · Published June 6, 2023
RedCloth is fixed in 4.3.3 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| RedCloth | RubyGems | 4.3.3 |
| redcloth | promptworks | 4.3.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| RubyGems | RedCloth | 0 |
Timeline
- Jun 6, 2023 CVE Published
- Jun 7, 2023 EPSS Score (30 in total, the first dated here)
- Feb 16, 2026 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-31606
vulnetix vdb fixes CVE-2023-31606
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-31606/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230706 [SECURITY] [DLA 3480-1] ruby-redcloth security update mailing-list
- GLSA-202401-14 vendor-advisory
- CVE-2023-31606 exploit
- https://nvd.nist.gov/vuln/detail/CVE-2023-31606 advisory
- https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml advisory
- https://github.com/advisories/GHSA-qcm3-vfq5-wfr2 advisory