CVE-2020-7613
HIGH 8.1CVSS 3.1Clamscan vulnerable to command injection
clamscan through 1.2.0 is vulnerable to Command Injection. It is possible to inject arbitrary commands as part of the _is_clamav_binary function located within Index.js. It should be noted that this vulnerability requires a pre-requisite that a folder should be created with the same command that will be chained to execute. This lowers the risk of this issue.
- Published
- 7 Apr 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-74CWE-78
- Also known as
- GHSA-5v25-xr56-phphSNYK-JS-CLAMSCAN-564113
- Sources
- NVDJSONOSV GHSA-5v25-xr56-phphJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | clamscan_project | clamscancpe:2.3:a:clamscan_project:clamscan:*:*:*:*:*:*:*:* |
<= 1.2.0 | |
| OSV | npm | clamscan | < 1.3.0 | 1.3.0 |
References
- https://github.com/kylefarris/clamscan/blob/master/index.js#L34 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CLAMSCAN-564113 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7613 · ADVISORY
- https://github.com/kylefarris/clamscan/pull/45 · WEB
- https://github.com/kylefarris/clamscan/commit/5f557c970817fe8c578ec3f7ad3bcbcef4cf5538 · WEB
- https://github.com/kylefarris/clamscan · PACKAGE
- https://huntr.dev/bounties/1-npm-clamscan · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 7 Apr 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 May 2022)