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.
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.008, 58.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Go Toolchain Cmd/go — versions 0
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (11notes/docker-github-runner, 11notes/docker-paperless-ngx, drewtwitchell/scancompare, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.