← Back

CVE-2023-39323

nvd nist
Published: Oct 5, 2023Modified: Jun 12, 2025

JSON object

Loading...
8.1
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploitability: 2.2 / Impact: 5.9
Source: NVD

Description

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 (5)

Products: Golang: Go · Fedoraproject: Fedora
1 product
Go
1 product
Fedora
Configuration A
2 vulnerable
Vulnerable SoftwareAffected Versions
Golang
Before 1.20.9
From 1.21.0 to 1.21.2
Configuration B
3 vulnerable
Vulnerable SoftwareAffected Versions
Fedoraproject
Version 37
Version 38
Version 39

References (18)

Source: security@golang.org
Patch
Source: security@golang.org
Issue TrackingPatch
Source: security@golang.org
Mailing ListRelease Notes
Source: security@golang.org
Vendor Advisory
Source: security@golang.org
Third Party Advisory
Source: security@golang.org
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Patch
Source: af854a3a-2127-422b-91ae-364da2661108
Issue TrackingPatch
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing ListRelease Notes
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory

Timeline

No history available yet.