# CVE-2020-7613: Clamscan vulnerable to command injection

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.12%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-04-07T13:19:05.000Z
- Modified: 2026-07-08T06:49:57.015Z
- Also known as: GHSA-5v25-xr56-phph, SNYK-JS-CLAMSCAN-564113
- Weaknesses: CWE-74, CWE-78
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- clamscan: All versions including 1.2.0
- clamscan (npm): before 1.3.0
- clamscan_project clamscan: up to 1.2.0

## Every score

- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-CLAMSCAN-564113> (exploit, third-party-advisory, web)
- <https://github.com/kylefarris/clamscan/blob/master/index.js#L34> (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)

## Sources

- CVE List: [CVE-2020-7613](https://www.cve.org/CVERecord?id=CVE-2020-7613), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-5v25-xr56-phph](https://github.com/advisories/GHSA-5v25-xr56-phph), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-7613](https://nvd.nist.gov/vuln/detail/CVE-2020-7613), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7613 · Whole record: https://cve.day/CVE-2020-7613.json · Rebuilt by cve.day 2026-11-25T22:57:51.802Z
