CVE-2020-7613 json
Clamscan vulnerable to command injection
published 6y ago modified 4mo ago also GHSA-5v25-xr56-phph , EUVD-2022-2654
- cvss
- 8.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm clamscan 1.3.0
- clamav Arch Linux 0.102.3-1
arch linux advisories AVG-1168
- github.com/kylefarris/clamscan@5f557c9 commit
- github.com/kylefarris/clamscan#45 pull request
Is CVE-2020-7613 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
2.12% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-CLAMSCAN-564113 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | clamscan | <1.3.0 |
1.3.0 |
Affected products
- n/a clamscan
Classification
References
-
github.com
/kylefarris/clamscan/pull/45
web
-
github.com
/kylefarris/clamscan/commit/5f557c970817fe8c578ec3f7ad3bcbcef4cf5538
web
-
snyk.io
/vuln/SNYK-JS-CLAMSCAN-564113
web, exploit, third-party-advisory
-
github.com
/kylefarris/clamscan/blob/master/index.js#L34
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7613
advisory
-
github.com
/kylefarris/clamscan
package
-
huntr.dev
/bounties/1-npm-clamscan
web
Sources
- CVE List CVE-2020-7613
- GitHub Advisory GHSA-5v25-xr56-phph
- NVD CVE-2020-7613
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.