Vulnerability Details : CVE-2023-39320
The go.mod toolchain directive, introduced in Go 1.21, 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.
Products affected by CVE-2023-39320
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-39320
0.59%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 68 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-39320
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2023-39320
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by:
- nvd@nist.gov (Primary)
- security@golang.org (Secondary)
References for CVE-2023-39320
-
https://pkg.go.dev/vuln/GO-2023-2042
GO-2023-2042 - Go PackagesVendor Advisory
-
https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
[security] Go 1.21.1 and Go 1.20.8 are releasedRelease Notes
-
https://security.gentoo.org/glsa/202311-09
Go: Multiple Vulnerabilities (GLSA 202311-09) — Gentoo security
-
https://security.netapp.com/advisory/ntap-20231020-0004/
September 2023 Golang 1.21.0 Vulnerabilities in NetApp Products | NetApp Product SecurityThird Party Advisory
-
https://go.dev/cl/526158
cmd/go: reject toolchain directives containing path separators (526158) · Gerrit Code ReviewPatch
-
https://go.dev/issue/62198
cmd/go: go.mod toolchain directive allows arbitrary execution (CVE-2023-39320) · Issue #62198 · golang/go · GitHubIssue Tracking
Jump to