GHSA-v725-9546-7q7m

    Dashboard / Vulnerabilities / GHSA-v725-9546-7q7m

    GHSA-v725-9546-7q7m

    Published: 6 Jan 2025Last Modified: 10 Sept 2026

    Summary: go-git has an Argument Injection via the URL field

    Details: ### Impact An argument injection vulnerability was discovered in `go-git` versions prior to `v5.13`. Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to [git-upload-pack flags](https://git-scm.com/docs/git-upload-pack). This only happens when the `file` transport protocol is being used, as that is the only protocol that shells out to `git` binaries. ### Affected versions Users running versions of `go-git` from `v4` and above are recommended to upgrade to `v5.13` in order to mitigate this vulnerability. ### Workarounds In cases where a bump to the latest version of `go-git` is not possible, we recommend users to enforce restrict validation rules for values passed in the URL field. ## Credit Thanks to @vin01 for responsibly disclosing this vulnerability to us.

    Affected packages

    Package

    Name: gopkg.in/src-d/go-git.v4

    Purl: pkg:golang/gopkg.in/src-d/go-git.v4

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 4.0.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-v725-9546-7q7m | CVE-DB