CVE-2023-24531: go toolchain cmd/go
Vulnerability summary
CVE-2023-24531 is a critical (CVSS 9.8) vulnerability in go toolchain cmd/go. EPSS estimates a 0.84% chance of exploitation in the next 30 days, higher than 57.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 4Timeline
- 02-07-2024PublishedVulnerability first disclosed.
- 28-03-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.84%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
0.00 pp
From 0.84% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Chainguard13 products
- argo-workflows< 3.6.5-r2
- go-1.20All versions (No fix recorded)
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
Wolfi13 products
- argo-workflows< 3.6.5-r2
- go-1.20All versions (No fix recorded)
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
Ubuntu11 products
- golang-1.10All versions (No fix recorded)
- golang-1.13All versions (No fix recorded)
- golang-1.14All versions (No fix recorded)
- golang-1.16All versions (No fix recorded)
- golang-1.17< 1.17.13-3ubuntu1.2
Debian1 product
- golang-1.19All versions (No fix recorded)
Go1 product
- toolchain< 1.21.0-0
Go toolchain1 product
- cmd/go< 1.21.0-0
6 vendors · 40 products
References
12 links- go.dev/issue/58508REPORT