Vulnerability in Go Toolchain Cmd/go
CVE-2023-24531
Command go env is documented as outputting a shell script containing the Go environment. However, go env doesn't sanitize values, so executing its output as a shell script can cause various bad bahaviors, including executing arbitrary commands or inserting new environment variables. This issue is relatively minor because, in general, if an attacker can set arbitrary environment variables on a system, they have better attack vectors than making "go env" print them out.
EPSS: 0.008 (54.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Go Toolchain Cmd/go — versions 0
Public proof-of-concept exploits
References
Frequently asked questions
- What is CVE-2023-24531?
- CVE-2023-24531 is a critical-severity vulnerability in Go Toolchain Cmd/go, classified under CWE-138: IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS. CVSS score: 9.8/10. Published 2024-07-02.
- How severe is CVE-2023-24531?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2023-24531 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.