{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/17748?format=json","vulnerability_id":"VCID-5wd2-9wcr-ayg4","summary":"Inefficient Regular Expression Complexity\nA 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.","aliases":[{"alias":"CVE-2023-31606"},{"alias":"GHSA-qcm3-vfq5-wfr2"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/206327?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.3-1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.3-1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/416674?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.4-1","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.4-1"},{"url":"http://public2.vulnerablecode.io/api/packages/206326?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.4-1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.4-1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/206325?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.4-2?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.4-2%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/175485?format=json","purl":"pkg:ebuild/dev-ruby/redcloth@4.3.2-r5","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:ebuild/dev-ruby/redcloth@4.3.2-r5"},{"url":"http://public2.vulnerablecode.io/api/packages/200754?format=json","purl":"pkg:gem/RedCloth@4.3.3","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.3.3"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/416672?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.2-3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.2-3"},{"url":"http://public2.vulnerablecode.io/api/packages/206324?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.2-3?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.2-3%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/416673?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.2-4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.2-4"},{"url":"http://public2.vulnerablecode.io/api/packages/206322?format=json","purl":"pkg:deb/debian/ruby-redcloth@4.3.2-4?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-redcloth@4.3.2-4%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/91219?format=json","purl":"pkg:gem/RedCloth@3.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@3.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/91220?format=json","purl":"pkg:gem/RedCloth@3.0.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@3.0.1"},{"url":"http://public2.vulnerablecode.io/api/packages/91221?format=json","purl":"pkg:gem/RedCloth@3.0.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@3.0.2"},{"url":"http://public2.vulnerablecode.io/api/packages/91222?format=json","purl":"pkg:gem/RedCloth@3.0.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@3.0.3"},{"url":"http://public2.vulnerablecode.io/api/packages/91223?format=json","purl":"pkg:gem/RedCloth@3.0.4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@3.0.4"},{"url":"http://public2.vulnerablecode.io/api/packages/91224?format=json","purl":"pkg:gem/RedCloth@4.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/91225?format=json","purl":"pkg:gem/RedCloth@4.0.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.0.1"},{"url":"http://public2.vulnerablecode.io/api/packages/91226?format=json","purl":"pkg:gem/RedCloth@4.0.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.0.2"},{"url":"http://public2.vulnerablecode.io/api/packages/91227?format=json","purl":"pkg:gem/RedCloth@4.0.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.0.3"},{"url":"http://public2.vulnerablecode.io/api/packages/91228?format=json","purl":"pkg:gem/RedCloth@4.0.4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.0.4"},{"url":"http://public2.vulnerablecode.io/api/packages/91229?format=json","purl":"pkg:gem/RedCloth@4.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/91230?format=json","purl":"pkg:gem/RedCloth@4.1.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.1.1"},{"url":"http://public2.vulnerablecode.io/api/packages/91231?format=json","purl":"pkg:gem/RedCloth@4.1.9","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.1.9"},{"url":"http://public2.vulnerablecode.io/api/packages/91232?format=json","purl":"pkg:gem/RedCloth@4.2.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.0"},{"url":"http://public2.vulnerablecode.io/api/packages/91233?format=json","purl":"pkg:gem/RedCloth@4.2.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.1"},{"url":"http://public2.vulnerablecode.io/api/packages/91234?format=json","purl":"pkg:gem/RedCloth@4.2.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.2"},{"url":"http://public2.vulnerablecode.io/api/packages/91235?format=json","purl":"pkg:gem/RedCloth@4.2.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.3"},{"url":"http://public2.vulnerablecode.io/api/packages/91236?format=json","purl":"pkg:gem/RedCloth@4.2.4.pre1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.4.pre1"},{"url":"http://public2.vulnerablecode.io/api/packages/91237?format=json","purl":"pkg:gem/RedCloth@4.2.4.pre2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.4.pre2"},{"url":"http://public2.vulnerablecode.io/api/packages/91238?format=json","purl":"pkg:gem/RedCloth@4.2.4.pre3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.4.pre3"},{"url":"http://public2.vulnerablecode.io/api/packages/91239?format=json","purl":"pkg:gem/RedCloth@4.2.4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.4"},{"url":"http://public2.vulnerablecode.io/api/packages/91240?format=json","purl":"pkg:gem/RedCloth@4.2.5","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.5"},{"url":"http://public2.vulnerablecode.io/api/packages/91241?format=json","purl":"pkg:gem/RedCloth@4.2.7","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.7"},{"url":"http://public2.vulnerablecode.io/api/packages/91242?format=json","purl":"pkg:gem/RedCloth@4.2.8","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.8"},{"url":"http://public2.vulnerablecode.io/api/packages/91243?format=json","purl":"pkg:gem/RedCloth@4.2.9","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4key-48mr-13f4"},{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.2.9"},{"url":"http://public2.vulnerablecode.io/api/packages/51038?format=json","purl":"pkg:gem/RedCloth@4.3.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.3.0"},{"url":"http://public2.vulnerablecode.io/api/packages/162743?format=json","purl":"pkg:gem/RedCloth@4.3.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.3.1"},{"url":"http://public2.vulnerablecode.io/api/packages/64140?format=json","purl":"pkg:gem/RedCloth@4.3.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5wd2-9wcr-ayg4"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.3.2"}],"references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-31606.json","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-31606.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2023-31606","reference_id":"","reference_type":"","scores":[{"value":"0.00912","scoring_system":"epss","scoring_elements":"0.76198","published_at":"2026-05-30T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2023-31606"},{"reference_url":"https://github.com/jgarber/redcloth","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/jgarber/redcloth"},{"reference_url":"https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327"},{"reference_url":"https://github.com/jgarber/redcloth/commit/8b1327688fef8e6617792054ef299d7bc74c0a1e","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/jgarber/redcloth/commit/8b1327688fef8e6617792054ef299d7bc74c0a1e"},{"reference_url":"https://github.com/jgarber/redcloth/issues/73","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/jgarber/redcloth/issues/73"},{"reference_url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html"},{"reference_url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040488","reference_id":"1040488","reference_type":"","scores":[],"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040488"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2221255","reference_id":"2221255","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2221255"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31606","reference_id":"CVE-2023-31606","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31606"},{"reference_url":"https://github.com/e23e/CVE-2023-31606#readme","reference_id":"CVE-2023-31606#README","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3","scoring_elements":""},{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/e23e/CVE-2023-31606#readme"},{"reference_url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml","reference_id":"CVE-2023-31606.YML","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml"},{"reference_url":"https://github.com/advisories/GHSA-qcm3-vfq5-wfr2","reference_id":"GHSA-qcm3-vfq5-wfr2","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-qcm3-vfq5-wfr2"},{"reference_url":"https://security.gentoo.org/glsa/202401-14","reference_id":"GLSA-202401-14","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://security.gentoo.org/glsa/202401-14"},{"reference_url":"https://usn.ubuntu.com/6358-1/","reference_id":"USN-6358-1","reference_type":"","scores":[],"url":"https://usn.ubuntu.com/6358-1/"}],"weaknesses":[{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."},{"cwe_id":1333,"name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."}],"exploits":[],"severity_range_score":"7.0 - 8.9","exploitability":"0.5","weighted_severity":"6.8","risk_score":3.4,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-5wd2-9wcr-ayg4"}