RubySec

Providing security resources for the Ruby community

CVE-2023-31606 (RedCloth): RedCloth Regular Expression Denial of Service issue

ADVISORIES

GEM

RedCloth

SEVERITY

CVSS v3.x: 7.5 (High)

UNAFFECTED VERSIONS

  • < 4.0.0

PATCHED VERSIONS

  • >= 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.

RELATED