Live threats

All CVEs / Golang

CVE-2023-39323Golang Go

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Oct 5, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go toolchain < 1.20.9 1.20.9 go get toolchain@v1.20.9
Go toolchain ≥ 1.21.0-0 < 1.21.2 1.21.2 go get toolchain@v1.21.2

Per OSV / GitHub Advisories (GO-2023-2095). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.20.9
golanggo≥ 1.21.0 < 1.21.2
fedoraprojectfedora37
fedoraprojectfedora38
fedoraprojectfedora39

Official sources

References

Links published by the sources. Open them with care.