GHSA-926x-m6m5-3mmp

Suggest an improvement
Source
https://github.com/advisories/GHSA-926x-m6m5-3mmp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-926x-m6m5-3mmp/GHSA-926x-m6m5-3mmp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-926x-m6m5-3mmp
Aliases
Published
2022-02-09T22:50:06Z
Modified
2026-03-13T21:56:27.220035Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
push-dir Enables OS Command Injection
Details

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.

Database specific
{
    "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"
}
References

Affected packages

npm / push-dir

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.4.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-926x-m6m5-3mmp/GHSA-926x-m6m5-3mmp.json"