CVE-2022-30580

    Dashboard / Vulnerabilities / CVE-2022-30580

    CVE-2022-30580

    Published: 9 Aug 2022Last Modified: 21 Oct 2026

    Summary: Empty Cmd.Path can trigger unintended binary in os/exec on Windows

    Details: Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either "..com" or "..exe" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    go1.17.10
    go1.17.9
    go1.17.8
    go1.17.7
    go1.17.6
    go1.17.5
    go1.17.4
    go1.17.3
    go1.17.2
    go1.17.1
    go1.17

    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