Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| n/a / push-dir | affected All versions including 0.4.1 |
CWE
No CWE identifiers supplied.
References
- https://github.com/L33T-KR3W/push-dir/blob/master/index.js#L139
- https://snyk.io/vuln/SNYK-JS-PUSHDIR-559009
ADP enrichment
No English description supplied.