CVE-2023-39323: Fedoraproject Fedora

High severity, CVSS 8.1. EPSS: 1.9% chance of exploitation in the next 30 days.

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.

Affected products

  • Fedoraproject Fedora: version 37 only; version 38 only; version 39 only
  • Golang Go: before 1.20.9 (fixed in 1.20.9); from 1.21.0, before 1.21.2 (fixed in 1.21.2)

Published 2023-10-05. Last modified 2026-06-17.