CVE-2020-28494: total.js - Command Injection
- Cve: CVE-2020-28494
- Name: total.js - Command Injection
- 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.
- Impact: Attackers can execute arbitrary commands on the server, potentially leading to full system compromise.
- Remediation: Update to version 3.4.7 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
- Epss score: 0.01723
- Epss percentile: 0.78108
- Assignee: [email protected]
- Published at: 2021-02-02T11:15:13Z
- Age in days: 2121
- Modified at: 2026-06-17T03:10:32Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-28494
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://snyk.io/vuln/SNYK-JS-TOTALJS-1046672 | nvd | 2021-02-02 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/totaljs/framework/commit/6192491ab2631e7c1d317c221f18ea613e2c18a5 | nvd | Patch, Third Party Advisory |
| https://snyk.io/vuln/SNYK-JS-TOTALJS-1046672 | nvd | Exploit, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| totaljs:total.js | < 3.4.7 | no | nvd | /v1/products/totaljs/total.js |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| totaljs/framework | commit, fix | yes | /v1/repositories/totaljs/framework |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-02-02
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts