GHSA-926x-m6m5-3mmp

    Dashboard / Vulnerabilities / GHSA-926x-m6m5-3mmp

    GHSA-926x-m6m5-3mmp

    Published: 9 Feb 2022Last Modified: 8 Jul 2026

    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](https://github.com/L33T-KR3W/push-dir/blob/master/index.js#L139). This could be abused by an attacker to inject arbitrary commands.

    Affected packages

    Package

    Name: push-dir

    Purl: pkg:npm/push-dir

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-926x-m6m5-3mmp | CVE-DB