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.
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | push-dir | All versions including 0.4.1 |
References
- https://github.com/L33T-KR3W/push-dir/blob/master/index.js#L139Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-PUSHDIR-559009Exploit, Third Party Advisory
- https://github.com/L33T-KR3W/push-dir/blob/master/index.js#L139Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-PUSHDIR-559009Exploit, Third Party Advisory
Timeline
- Published
- Feb 28, 2020
- Last modified
- Jun 17, 2026
- NVD status
- Modified