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.
{
"severity": "CRITICAL",
"cwe_ids": [
"CWE-78"
],
"github_reviewed": true,
"github_reviewed_at": "2021-04-09T21:01:28Z",
"nvd_published_at": "2020-02-28T21:15:00Z"
}