CVE-2023-24531

9.8 CRITICAL
Published: July 02, 2024 Modified: April 15, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://go.dev/cl/488375
Source: security@golang.org
https://go.dev/cl/493535
Source: security@golang.org
https://go.dev/issue/58508
Source: security@golang.org
https://pkg.go.dev/vuln/GO-2024-2962
Source: security@golang.org
https://go.dev/cl/488375
Source: af854a3a-2127-422b-91ae-364da2661108
https://go.dev/cl/493535
Source: af854a3a-2127-422b-91ae-364da2661108
https://go.dev/issue/58508
Source: af854a3a-2127-422b-91ae-364da2661108
https://pkg.go.dev/vuln/GO-2024-2962
Source: af854a3a-2127-422b-91ae-364da2661108
https://security.netapp.com/advisory/ntap-20250328-0005/
Source: af854a3a-2127-422b-91ae-364da2661108

11 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
0.5%
65th percentile
Exploitation Status
Not in CISA KEV