← Back to CVEs
CVE-2023-24531
CRITICAL9.8
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.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published7/2/2024
Last Modified3/28/2025
Sourcenvd
Honeypot Sightings0
References
https://go.dev/cl/488375(security@golang.org)
https://go.dev/cl/493535(security@golang.org)
https://go.dev/issue/58508(security@golang.org)
https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ(security@golang.org)
https://pkg.go.dev/vuln/GO-2024-2962(security@golang.org)
https://go.dev/cl/488375(af854a3a-2127-422b-91ae-364da2661108)
https://go.dev/cl/493535(af854a3a-2127-422b-91ae-364da2661108)
https://go.dev/issue/58508(af854a3a-2127-422b-91ae-364da2661108)
https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ(af854a3a-2127-422b-91ae-364da2661108)
https://pkg.go.dev/vuln/GO-2024-2962(af854a3a-2127-422b-91ae-364da2661108)
https://security.netapp.com/advisory/ntap-20250328-0005/(af854a3a-2127-422b-91ae-364da2661108)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.