Skip to content

OS Command Injection in docker-compose-remote-api

Critical severity GitHub Reviewed Published May 7, 2021 to the GitHub Advisory Database • Updated Sep 11, 2023

Package

npm docker-compose-remote-api (npm)

Affected versions

<= 0.1.4

Patched versions

None

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.

References

Published by the National Vulnerability Database Mar 15, 2020
Reviewed May 4, 2021
Published to the GitHub Advisory Database May 7, 2021
Last updated Sep 11, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2020-7606

GHSA ID

GHSA-q6pj-jh94-5fpr

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.