CVE-2023-39323

HIGHCVSS 8.1/10EPSS 1.75%

Last modified

CVE-2023-39323 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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". EPSS estimates a 1.75% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
8.1/10

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.75%

75.0th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
GolangGo< 1.20.9
GolangGo>= 1.21.0, < 1.21.2
FedoraprojectFedora37
FedoraprojectFedora38
FedoraprojectFedora39

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-39323?
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 severe is CVE-2023-39323?
CVE-2023-39323 has a CVSS score of 8.1/10 (HIGH severity). The EPSS model estimates a 1.75% probability of exploitation in the next 30 days.
How do I fix CVE-2023-39323?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-39323?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST