CVEvulnerability
CVE-2023-24531
9.8 CRITICAL
Official page ↗
- Status
- Deferred
- Published
- 2024-07-02
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
References
- https://go.dev/cl/488375 go.dev
- https://go.dev/cl/493535 go.dev
- https://go.dev/issue/58508 go.dev
- https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ groups.google.com
- https://pkg.go.dev/vuln/GO-2024-2962 pkg.go.dev
- https://go.dev/cl/488375 go.dev
- https://go.dev/cl/493535 go.dev
- https://go.dev/issue/58508 go.dev
- https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ groups.google.com
- https://pkg.go.dev/vuln/GO-2024-2962 pkg.go.dev
- https://security.netapp.com/advisory/ntap-20250328-0005/ security.netapp.com