CVE-2023-24531

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADPADP
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 64%
Affected Products (NVD)
VendorProductVersion
gotoolchaincmd\/go
𝑥
< 1.21.0-0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
golang-1.15
bookworm
no-dsa
bullseye
vulnerable
golang-1.19
bookworm
vulnerable
bullseye
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
golang
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
golang-1.10
bionic
needs-triage
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
needs-triage
golang-1.13
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
mantic
dne
noble
dne
oracular
dne
xenial
needs-triage
golang-1.14
focal
needs-triage
jammy
dne
mantic
dne
noble
dne
oracular
dne
golang-1.16
bionic
needs-triage
focal
needs-triage
jammy
dne
mantic
dne
noble
dne
oracular
dne
golang-1.17
focal
dne
jammy
Fixed 1.17.13-3ubuntu1.2
released
mantic
dne
noble
dne
oracular
dne
golang-1.18
bionic
Fixed 1.18.1-1ubuntu1~18.04.4+esm1
released
focal
Fixed 1.18.1-1ubuntu1~20.04.3
released
jammy
Fixed 1.18.1-1ubuntu1.2
released
mantic
dne
noble
dne
oracular
dne
xenial
Fixed 1.18.1-1ubuntu1~16.04.6+esm1
released
golang-1.19
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
golang-1.20
focal
needs-triage
jammy
needs-triage
mantic
ignored
noble
dne
oracular
dne
golang-1.21
focal
needs-triage
jammy
needs-triage
mantic
ignored
noble
needs-triage
oracular
dne
golang-1.22
focal
not-affected
jammy
not-affected
mantic
ignored
noble
not-affected
oracular
not-affected
golang-1.6
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
xenial
needs-triage
golang-1.8
bionic
needs-triage
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne
golang-1.9
bionic
needs-triage
focal
dne
jammy
dne
mantic
dne
noble
dne
oracular
dne