{"id":"GHSA-5v25-xr56-phph","summary":"Clamscan vulnerable to command injection","details":"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.","aliases":["CVE-2020-7613","SNYK-JS-CLAMSCAN-564113"],"modified":"2026-07-08T06:49:57.015333085Z","published":"2022-05-24T17:13:40Z","database_specific":{"nvd_published_at":"2020-04-07T14:15:00Z","cwe_ids":["CWE-74","CWE-78"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-10-19T18:32:34Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7613"},{"type":"WEB","url":"https://github.com/kylefarris/clamscan/pull/45"},{"type":"WEB","url":"https://github.com/kylefarris/clamscan/commit/5f557c970817fe8c578ec3f7ad3bcbcef4cf5538"},{"type":"PACKAGE","url":"https://github.com/kylefarris/clamscan"},{"type":"WEB","url":"https://github.com/kylefarris/clamscan/blob/master/index.js#L34"},{"type":"WEB","url":"https://huntr.dev/bounties/1-npm-clamscan"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-CLAMSCAN-564113"}],"affected":[{"package":{"name":"clamscan","ecosystem":"npm","purl":"pkg:npm/clamscan"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.2.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5v25-xr56-phph/GHSA-5v25-xr56-phph.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}