CVE-2020-28494 Command Injection
Attackers can execute arbitrary commands via unsanitized input in image processing functions, requiring an upgrade to total.js.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-28494?
CVE-2020-28494 is a high-severity command injection vulnerability in total.js, published on 2 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-78
Which versions are affected by CVE-2020-28494?
2 open source packages ship an affected version, including total.js. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
total.js npm | All versions | 3.4.7 |
total.js npm | All versions | 3.4.7 |
Products include Totaljs Total.js.
How do I fix CVE-2020-28494?
Upgrade total.js to 3.4.7 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2020-28494 being exploited?
There is no known exploitation of CVE-2020-28494 in the wild and no public exploit code.
Other vulnerabilities in total.js
Sources
Also known as GHSA-4449-hg37-77v8, SNYK-JS-TOTALJS-1046672.