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-2017-16210 Vulnerability in npm package jn_jj_server
CVE-2023-36479 Vulnerability in maven package org.eclipse.jetty:jetty-servlets
CVE-2023-26120 Vulnerability in maven package com.xuxueli:xxl-job
CVE-2018-11788 Vulnerability in maven package org.apache.karaf.specs:org.apache.karaf.specs.java.xml
CVE-2019-20363 Vulnerability in maven package org.igniterealtime.openfire:xmppserver