p PatchFirst

CVE-2023-39320

CVE-2023-39320 · Arbitrary code execution via go.mod toolchain directive in cmd/go

CVSS 9.8 · Critical · EPSS 1.8% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • cmd/goUpdate to 1.21.1
  • go Alpine 3.19Update to 1.21.1-r0
  • go Alpine 3.20Update to 1.21.1-r0
  • go Alpine 3.21Update to 1.21.1-r0
  • and 3 more

Check the installed version:

apk list -I -o go

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • openSUSE-SU-2024:13217-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2023:4469-1 · openSUSE Leap 15.4, openSUSE Leap 15.5, SUSE Linux Enterprise Module for Development Tools 15 SP4, SUSE Linux Enterprise Module for Development Tools 15 SP5 ·
  • openSUSE-SU-2023:0360-1 · SUSE Package Hub 12 ·
  • SUSE-SU-2023:3701-1 · openSUSE Leap 15.4, openSUSE Leap 15.5, SUSE Linux Enterprise Module for Development Tools 15 SP4, SUSE Linux Enterprise Module for Development Tools 15 SP5 ·

Stack: system

Affected products and versions

  • cmd/go

    Versions
    • ≥ 1.21.0-0, < 1.21.1: Affected (semver)

    Update to 1.21.1

  • go Alpine 3.19

    Affected ranges
    • ECOSYSTEM: ≥ 1.21.0, < 1.21.1-r0

    Update to 1.21.1-r0

  • go Alpine 3.20

    Affected ranges
    • ECOSYSTEM: ≥ 1.21.0, < 1.21.1-r0

    Update to 1.21.1-r0

  • go Alpine 3.21

    Affected ranges
    • ECOSYSTEM: ≥ 1.21.0, < 1.21.1-r0

    Update to 1.21.1-r0

  • go Alpine 3.22

    Affected ranges
    • ECOSYSTEM: ≥ 1.21.0, < 1.21.1-r0

    Update to 1.21.1-r0

  • go Alpine 3.23

    Affected ranges
    • ECOSYSTEM: ≥ 1.21.0, < 1.21.1-r0

    Update to 1.21.1-r0

  • go Alpine 3.24

    Affected ranges
    • ECOSYSTEM: ≥ 1.21.0, < 1.21.1-r0

    Update to 1.21.1-r0

Original sources

Check your server →