VYPR
Critical severityNVD Advisory· Published Mar 15, 2020· Updated Aug 4, 2024

CVE-2020-7606

CVE-2020-7606

Description

docker-compose-remote-api versions through 0.1.4 allow command injection via unsanitized serviceName parameter.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

docker-compose-remote-api versions through 0.1.4 allow command injection via unsanitized serviceName parameter.

The package docker-compose-remote-api (versions up to and including 0.1.4) contains a command injection vulnerability in its exec() function. Inside index.js, the exec(serviceName, cmd, fnStdout, fnStderr, fnExit) function directly uses the serviceName variable in a command context without any sanitization or validation, allowing attacker-controlled input to be interpreted as part of the operating system command [1][2].

Exploitation

An attacker can exploit this by controlling the serviceName argument, for example by passing a string containing shell metacharacters such as an ampersand (&). A proof-of-concept (exec("& touch vulnerable.txt")) demonstrates that arbitrary commands can be appended and executed [2]. No authentication is required if the application exposes this API endpoint untrusted users.

Impact

Successful exploitation allows arbitrary command execution on the host system running the Node.js application. An attacker could compromise the server, exfiltrate data, install malware, or pivot to other systems. The vulnerability is classified as critical due to the high potential impact.

Mitigation

As of the disclosure date (March 2020), no fixed version was available for docker-compose-remote-api [2]. Users of affected versions should upgrade to a patched release if one becomes available, or discontinue use of the package. An alternative is to implement strict input validation to sanitize the serviceName parameter before passing it to the exec function.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
docker-compose-remote-apinpm
<= 0.1.4

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.