{"id":"CVE-2020-28494","published":"2021-02-02T10:25:22Z","modified":"2024-09-16T16:33:03Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects the package total.js before 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build the command that is then executed using child_process.spawn. The issue occurs because child_process.spawn is called with the option shell set to true and because the type parameter is not properly sanitized.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01723,"percentile":0.78073,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TOTALJS-1046672","tags":["x_refsource_MISC"]},{"url":"https://github.com/totaljs/framework/commit/6192491ab2631e7c1d317c221f18ea613e2c18a5","tags":["x_refsource_MISC"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":15.61},{"name":"CVSS severity","points":6.02}]},"affectedVersions":[{"vendor":"n/a","product":"total.js","versions":[">= unspecified, < 3.4.7"]}],"affected":[{"ecosystem":"npm","package":"total.js","vulnerableRanges":["<3.4.7"],"patched":["3.4.7"],"from":["GHSA-4449-hg37-77v8"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection in the total.js package before 3.4.7, located in the image.pipe and image.stream functions, where the type parameter is used to build a command that is run via child_process.spawn with shell set to true and without proper sanitisation. An attacker who can supply a crafted type value to these functions can get arbitrary commands executed on the host, and the vector indicates this is reachable over the network with no privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:42Z"},"euvd":{"id":"EUVD-2021-0530","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-8903","published":"2019-02-18","fixed":"3.2.3","kev":false},{"cve":"CVE-2019-10260","published":"2019-03-28","fixed":"3.3.0-13","kev":false,"link":{"from":"CVE-2019-10260","to":"CVE-2020-28494","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:total.js","fromFixed":"3.3.0-13","toFixed":"3.4.7","daysApart":677}]}},{"cve":"CVE-2020-28494","published":"2021-02-02","fixed":"3.4.7","kev":false},{"cve":"CVE-2020-28495","published":"2021-02-02","fixed":"3.4.7","kev":false},{"cve":"CVE-2021-23344","published":"2021-03-04","fixed":"3.4.8","kev":false},{"cve":"CVE-2021-23389","published":"2021-07-12","fixed":"3.4.9","kev":false}],"package":"npm:total.js"}}