CVE Vulnerabilities

CVE-2023-24531

Published: Jul 02, 2024 | Modified: Mar 28, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Command go env is documented as outputting a shell script containing the Go environment. However, go env doesnt 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.

Affected Software

NameVendorStart VersionEnd Version
Golang-1.10Ubuntutrusty/esm*
Golang-1.13Ubuntufocal*
Golang-1.14Ubuntufocal*
Golang-1.16Ubuntufocal*
Golang-1.17Ubuntujammy*
Golang-1.18Ubuntuesm-apps/bionic*
Golang-1.18Ubuntuesm-apps/focal*
Golang-1.18Ubuntuesm-apps/xenial*
Golang-1.18Ubuntufocal*
Golang-1.18Ubuntujammy*
Golang-1.20Ubuntufocal*
Golang-1.20Ubuntumantic*
Golang-1.21Ubuntufocal*
Golang-1.21Ubuntumantic*
Golang-1.22Ubuntumantic*

References