CVE-2020-7613 Clamscan vulnerable to command injection

High 8.1 Published Updated

Attackers can execute arbitrary commands via the _is_clamav_binary function if a specific folder exists, affecting clamscan users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-7613?

CVE-2020-7613 is a high-severity command injection vulnerability in clamscan, published on 7 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2020-7613?

2 open source packages ship an affected version, including clamscan. It affects 1 product.

PackageAffectedFixed in
clamscan npmAll versions1.3.0
clamscan npmAll versions1.3.0

Products include Clamscan Project Clamscan.

How do I fix CVE-2020-7613?

Upgrade clamscan to 1.3.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2020-7613 being exploited?

There is no known exploitation of CVE-2020-7613 in the wild and no public exploit code.

Sources

Also known as GHSA-5v25-xr56-phph, SNYK-JS-CLAMSCAN-564113.

Is CVE-2020-7613 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free