docker-compose-remote-api@0.1.4 vulnerabilities

Integration module with docker-compose same Docker Remote API

Direct Vulnerabilities

Known vulnerabilities in the docker-compose-remote-api package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Command Injection

docker-compose-remote-api is a Connection interface between docker-compose and the Docker Remote API.

Affected versions of this package are vulnerable to Command Injection. 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.

PoC

var Root = require("docker-compose-remote-api");
var root = Root({cwd:__dirname}).exec("& touch vulnerable.txt");

How to fix Command Injection?

There is no fixed version for docker-compose-remote-api.

*