CVE-2023-39320

    Dashboard / Vulnerabilities / CVE-2023-39320

    CVE-2023-39320

    Published: 8 Sept 2023Last Modified: 12 Aug 2026

    Summary: Arbitrary code execution via go.mod toolchain directive in cmd/go

    Details: The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- c19c4c566c63818dfd059b352e52c4710eecf14d

    Affected versions

    go1.21.0

    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
    CVE-2023-39320 | CVE-DB