GHSA-3f95-r44v-8mrg

    Dashboard / Vulnerabilities / GHSA-3f95-r44v-8mrg

    GHSA-3f95-r44v-8mrg

    Published: 12 Mar 2022Last Modified: 14 Jan 2025

    Summary: Command injection in simple-git

    Details: The package simple-git before 3.3.0 is vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options, it was possible to get arbitrary command execution.

    Affected packages

    Package

    Name: simple-git

    Purl: pkg:npm/simple-git

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.3.0

    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-3f95-r44v-8mrg | CVE-DB