{"id":"UBUNTU-CVE-2023-31606","details":"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.","modified":"2026-01-30T02:46:04.617277Z","published":"2023-06-06T17:15:00Z","related":["USN-6358-1"],"upstream":["CVE-2023-31606"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-31606"},{"type":"REPORT","url":"https://github.com/jgarber/redcloth"},{"type":"REPORT","url":"https://github.com/e23e/CVE-2023-31606#readme"},{"type":"REPORT","url":"https://github.com/jgarber/redcloth/issues/73"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6358-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-31606"}],"affected":[{"package":{"name":"ruby-redcloth","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-redcloth@4.2.9-5ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.9-5ubuntu0.1~esm1"}]}],"versions":["4.2.9-5build1","4.2.9-5build2","4.2.9-5build3","4.2.9-5build4"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-redcloth","binary_version":"4.2.9-5ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-31606.json"}},{"package":{"name":"ruby-redcloth","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-redcloth@4.3.2-3ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.2-3ubuntu0.1~esm1"}]}],"versions":["4.3.2-2","4.3.2-3","4.3.2-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-redcloth","binary_version":"4.3.2-3ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-31606.json"}},{"package":{"name":"ruby-redcloth","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-redcloth@4.3.2-3+deb10u1build0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.2-3+deb10u1build0.20.04.1"}]}],"versions":["4.3.2-3build1","4.3.2-3build2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ruby-redcloth","binary_version":"4.3.2-3+deb10u1build0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-31606.json"}},{"package":{"name":"ruby-redcloth","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-redcloth@4.3.2-4ubuntu0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.2-4ubuntu0.22.04.1"}]}],"versions":["4.3.2-3build2","4.3.2-3build3","4.3.2-4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ruby-redcloth","binary_version":"4.3.2-4ubuntu0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-31606.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}