GHSA-3x62-x456-q2vm

    Dashboard / Vulnerabilities / GHSA-3x62-x456-q2vm

    GHSA-3x62-x456-q2vm

    Published: 3 May 2022Last Modified: 8 Jul 2026

    Summary: OS Command Injection in git-pull-or-clone

    Details: The package git-pull-or-clone before 2.0.2 is vulnerable to Command Injection due to the use of the --upload-pack feature of git which is also supported for git clone. The source includes the use of the secure child process API spawn(). However, the outpath parameter passed to it may be a command-line argument to the git clone command and result in arbitrary command injection. ## Credits Credit @lirantal for discovering this vulnerability.

    Affected packages

    Package

    Name: git-pull-or-clone

    Purl: pkg:npm/git-pull-or-clone

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.0.2

    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-3x62-x456-q2vm | CVE-DB