CVE-2023-39323
Arbitrary code execution during build via line directives in cmd/go
8.1
HIGH
CVSS 3.1
EPSS 0.06%
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.
How to fix CVE-2023-39323
To remediate CVE-2023-39323, upgrade the affected package to a fixed version below.
- —upgrade to 1.20.9 or later
- —no fix listed
- —no fix listed
- —upgrade to 1.20.9 or later
Is CVE-2023-39323 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.20.9, >= 1.21.0, < 1.21.2
- from 0
- from 0
- from 0, < 1.20.9, >= 1.21.0-0, < 1.21.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |