Skip to content

CVE-2023-31606 RedCloth Regular Expression Denial of Service issue

HighCVSS 7.5 EPSS 1.5% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 8 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
debian/ruby-redcloth(Debian 12) = 4.3.2-4; = 4.3.3-1; = 4.3.4-1; = 4.3.4-2 +1 more No fix listed No fix yet
debian/ruby-redcloth(Debian 13) < 4.3.3-1 4.3.3-1 Fixed
debian/ruby-redcloth(Debian 14) < 4.3.3-1 4.3.3-1 Fixed
promptworks redcloth >= 4.0.0, <= 4.3.2 after 4.3.2 Fixed
rubygems redcloth(RubyGems) < 4.3.3; = 3.0.0; = 3.0.1; = 3.0.2 +25 more 4.3.3 Fixed
ubuntu/ruby-redcloth(Ubuntu 20.04) < 4.3.2-3+deb10u1build0.20.04.1; = 4.3.2-3build1; = 4.3.2-3build2 4.3.2-3+deb10u1build0.20.04.1 Fixed
ubuntu/ruby-redcloth(Ubuntu 22.04) < 4.3.2-4ubuntu0.22.04.1; = 4.3.2-3build2; = 4.3.2-3build3; = 4.3.2-4 4.3.2-4ubuntu0.22.04.1 Fixed
ubuntu/ruby-redcloth(Ubuntu Pro 16.04) < 4.2.9-5ubuntu0.1~esm1; = 4.2.9-5build1; = 4.2.9-5build2; = 4.2.9-5build3 +1 more 4.2.9-5ubuntu0.1~esm1 Fixed
ubuntu/ruby-redcloth(Ubuntu Pro 18.04) < 4.3.2-3ubuntu0.1~esm1; = 4.3.2-2; = 4.3.2-3; = 4.3.2-3build1 4.3.2-3ubuntu0.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
rubygems redcloth(RubyGems) < 4.3.3 4.3.3
rubygems redcloth(RubyGems) = 3.0.0 No fix listed
rubygems redcloth(RubyGems) = 3.0.1 No fix listed
rubygems redcloth(RubyGems) = 3.0.2 No fix listed
rubygems redcloth(RubyGems) = 3.0.3 No fix listed
rubygems redcloth(RubyGems) = 3.0.4 No fix listed
rubygems redcloth(RubyGems) = 4.0.0 No fix listed
rubygems redcloth(RubyGems) = 4.0.1 No fix listed
rubygems redcloth(RubyGems) = 4.0.2 No fix listed
rubygems redcloth(RubyGems) = 4.0.3 No fix listed
rubygems redcloth(RubyGems) = 4.0.4 No fix listed
rubygems redcloth(RubyGems) = 4.1.0 No fix listed
rubygems redcloth(RubyGems) = 4.1.1 No fix listed
rubygems redcloth(RubyGems) = 4.1.9 No fix listed
rubygems redcloth(RubyGems) = 4.2.0 No fix listed
rubygems redcloth(RubyGems) = 4.2.1 No fix listed
rubygems redcloth(RubyGems) = 4.2.2 No fix listed
rubygems redcloth(RubyGems) = 4.2.3 No fix listed
rubygems redcloth(RubyGems) = 4.2.4 No fix listed
rubygems redcloth(RubyGems) = 4.2.4.pre1 No fix listed
rubygems redcloth(RubyGems) = 4.2.4.pre2 No fix listed
rubygems redcloth(RubyGems) = 4.2.4.pre3 No fix listed
rubygems redcloth(RubyGems) = 4.2.5 No fix listed
rubygems redcloth(RubyGems) = 4.2.7 No fix listed
rubygems redcloth(RubyGems) = 4.2.8 No fix listed
Show 28 more
ProductAffected versionsFixed in
rubygems redcloth(RubyGems) = 4.2.9 No fix listed
rubygems redcloth(RubyGems) = 4.3.0 No fix listed
rubygems redcloth(RubyGems) = 4.3.1 No fix listed
rubygems redcloth(RubyGems) = 4.3.2 No fix listed
debian/ruby-redcloth(Debian:12) All versions No fix listed
debian/ruby-redcloth(Debian:12) = 4.3.2-4 No fix listed
debian/ruby-redcloth(Debian:12) = 4.3.3-1 No fix listed
debian/ruby-redcloth(Debian:12) = 4.3.4-1 No fix listed
debian/ruby-redcloth(Debian:12) = 4.3.4-2 No fix listed
debian/ruby-redcloth(Debian:13) < 4.3.3-1 4.3.3-1
debian/ruby-redcloth(Debian:14) < 4.3.3-1 4.3.3-1
ubuntu/ruby-redcloth(Ubuntu:22.04) < 4.3.2-4ubuntu0.22.04.1 4.3.2-4ubuntu0.22.04.1
promptworks redcloth >= 4.0.0, <= 4.3.2 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:16.04) < 4.2.9-5ubuntu0.1~esm1 4.2.9-5ubuntu0.1~esm1
ubuntu/ruby-redcloth(Ubuntu:Pro:16.04) = 4.2.9-5build1 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:16.04) = 4.2.9-5build2 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:16.04) = 4.2.9-5build3 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:16.04) = 4.2.9-5build4 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:18.04) < 4.3.2-3ubuntu0.1~esm1 4.3.2-3ubuntu0.1~esm1
ubuntu/ruby-redcloth(Ubuntu:Pro:18.04) = 4.3.2-2 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:18.04) = 4.3.2-3 No fix listed
ubuntu/ruby-redcloth(Ubuntu:Pro:18.04) = 4.3.2-3build1 No fix listed
ubuntu/ruby-redcloth(Ubuntu:20.04) < 4.3.2-3+deb10u1build0.20.04.1 4.3.2-3+deb10u1build0.20.04.1
ubuntu/ruby-redcloth(Ubuntu:20.04) = 4.3.2-3build1 No fix listed
ubuntu/ruby-redcloth(Ubuntu:20.04) = 4.3.2-3build2 No fix listed
ubuntu/ruby-redcloth(Ubuntu:22.04) = 4.3.2-3build2 No fix listed
ubuntu/ruby-redcloth(Ubuntu:22.04) = 4.3.2-3build3 No fix listed
ubuntu/ruby-redcloth(Ubuntu:22.04) = 4.3.2-4 No fix listed

References