Description
push-dir through 0.4.1 allows execution of arbritary commands. Arguments provided as part of the variable "opt.branch" is not validated before being provided to the "git" command within "index.js#L139". This could be abused by an attacker to inject arbitrary commands.
Remediation
References
https://github.com/L33T-KR3W/push-dir/blob/master/index.js#L139
https://snyk.io/vuln/SNYK-JS-PUSHDIR-559009
Related Vulnerabilities
CVE-2022-23307 Vulnerability in maven package org.apache.logging.log4j:log4j
CVE-2019-1003034 Vulnerability in maven package org.jenkins-ci.plugins:job-dsl
CVE-2013-4590 Vulnerability in maven package org.apache.tomcat:tomcat-catalina
CVE-2021-31805 Vulnerability in maven package org.apache.struts:struts2-core
CVE-2017-9804 Vulnerability in maven package org.apache.struts:struts2-core