CVE-2020-7606 OS Command Injection in docker-compose-remote-api

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via unsanitized input in the docker-compose-remote-api library, potentially compromising the host system.

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

What is CVE-2020-7606?

CVE-2020-7606 is a critical command injection vulnerability in docker-compose-remote-api, published on 15 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

docker-compose-remote-api through 0.1.4 allows execution of arbitrary commands. Within 'index.js' of the package, the function 'exec(serviceName, cmd, fnStdout, fnStderr, fnExit)' uses the variable 'serviceName' which can be controlled by users without any sanitization.

Weakness: CWE-78

Which versions are affected by CVE-2020-7606?

2 open source packages ship an affected version, including docker-compose-remote-api. It affects 1 product.

PackageAffectedFixed in
docker-compose-remote-api npmAll versions to 0.1.4None
docker-compose-remote-api npmAll versions to 0.1.4None

Products include Docker-Compose-Remote-Api Project Docker-Compose-Remote-Api.

How do I fix CVE-2020-7606?

No fix has been published for CVE-2020-7606 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2020-7606 being exploited?

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

Sources

Also known as GHSA-q6pj-jh94-5fpr.

Is CVE-2020-7606 in your software?

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

Check your SBOMs for free