CVE-2023-24531
criticalpriority · track · 0EPSS 0.008 · 58 %ileDEEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (13)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1706Jabra Direct: Mehrere Schwachstellen ermöglichen nicht spezifizierten AngriffDeutsch2026-05-27csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Jabra Direct ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
- BIT-golang-2023-24531Output of "go env" does not sanitize values in cmd/go2024-07-04vendor · osvUS
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.
- GO-2024-2962Output of "go env" does not sanitize values in cmd/go2024-07-02vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202407-261cnnvd
- EUVD-2023-28549enisa_euvd
- BDU:2024-08391fstec_bdu
- GHSA-cwpg-qgc6-jxvqenisa_euvd
- BIT-golang-2023-24531osv
- GO-2024-2962osv
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-24531/cnnvd
- https://go.dev/cl/488375cnnvd
- https://go.dev/cl/493535cnnvd
- https://go.dev/issue/58508cnnvd
- https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJcnnvd
- https://pkg.go.dev/vuln/GO-2024-2962cnnvd
- https://vigilance.fr/vulnerability/Go-code-execution-via-Env-New-Environment-Variables-45366cnnvd
- https://go.dev/cl/488375enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan