PT-2023-5127

CVE-2023-39320

·

Published

2023-07-27

·

Updated

2026-10-30

Description by

CVSS 3.1
10
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Go versions 1.21 and later
Description The go.mod toolchain directive can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software. The issue is related to incorrect code generation management when loading the Go Toolchain. Exploitation of the issue may allow a remote attacker to elevate privileges and execute arbitrary code.
Recommendations For Go version 1.21 and later, consider disabling the toolchain directive in the go.mod file as a temporary workaround until a patch is available. Restrict access to the go.mod file to minimize the risk of exploitation. Avoid using the go.mod toolchain directive in the "go" command until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploitability
Exploit
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALT-PU-2023-5463
ALT-PU-2023-5464
ALT-PU-2023-5492
ALT-PU-2023-7055
ALT-PU-2024-11872
ALT-PU-2024-1825
ALT-PU-2024-4847
BIT-GOLANG-2023-39320
CLEANSTART-2024-RW45714
GO-2023-2042
OPENSUSE-SU-2023:0360-1
OPENSUSE-SU-2023_3701-1
OPENSUSE-SU-2023_4469-1
OPENSUSE-SU-2024:13217-1
SUSE-SU-2023:3701-1
SUSE-SU-2023:4469-1
Found an issue in the description? Have something to add? Feel free to write us 👾