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.
Remediation
References
https://snyk.io/vuln/SNYK-JS-DOCKERCOMPOSEREMOTEAPI-560125
Related Vulnerabilities
CVE-2022-31044 Vulnerability in maven package org.rundeck:rundeck
CVE-2022-0265 Vulnerability in maven package com.hazelcast:hazelcast
CVE-2016-5005 Vulnerability in maven package org.apache.archiva:archiva
CVE-2020-22864 Vulnerability in npm package froala-editor
CVE-2023-46998 Vulnerability in maven package org.webjars.bowergithub.makeusabrew:bootbox