
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-24531 is a security vulnerability discovered in the Go programming language's 'go env' command. The vulnerability was disclosed on July 2, 2024, affecting Go versions before 1.21.0-0. The issue stems from the command's failure to properly sanitize environment variable values when outputting them as a shell script (NVD, Go Issue).
The vulnerability exists in the 'go env' command, which is documented to output a shell script containing the Go environment. The command fails to sanitize values properly, which can lead to command injection or unauthorized environment variable manipulation. The issue has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) by CISA-ADP (NVD).
When exploited, this vulnerability can allow attackers to execute arbitrary commands or insert new environment variables through crafted environment variable values. For example, an attacker could set malicious values for variables like CC that would be executed when the output is sourced as a shell script (Go Issue).
The vulnerability has been fixed in Go version 1.21.0 and later. Users are advised to upgrade to this version or later to address the issue. The fix includes proper sanitization of environment variable values and improved quoting mechanisms for the 'go env' command output (Ubuntu Notice).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."