Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-24531

published critical CVSS 3.1 · 9.8

Output of "go env" does not sanitize values in cmd/go

Published
02 Jul 2024, 19:51:48 UTC
Updated
28 Mar 2025, 15:02:59 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Go toolchain — cmd/go0 to < 1.21.0-0 · Other versions: unaffected Affected Not stated Go
gotoolchain — cmd\/go0 to < 1.21.0-0 · Other versions: unknown Affected Not stated CISA-ADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu bionic golang-1.18 Advisory build 1.18.1-1ubuntu1~18.04.4+esm1 USN-7109-1
Ubuntu bionic golang-1.18-go Advisory build 1.18.1-1ubuntu1~18.04.4+esm1 USN-7109-1
Ubuntu bionic golang-1.18-src Advisory build 1.18.1-1ubuntu1~18.04.4+esm1 USN-7109-1
Ubuntu focal golang-1.18 Advisory build 1.18.1-1ubuntu1~20.04.3 USN-7109-1
Show 11 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu focal golang-1.18-go Advisory build 1.18.1-1ubuntu1~20.04.3 USN-7109-1
Ubuntu focal golang-1.18-src Advisory build 1.18.1-1ubuntu1~20.04.3 USN-7109-1
Ubuntu jammy golang-1.17 Advisory build 1.17.13-3ubuntu1.2 USN-7061-1
Ubuntu jammy golang-1.17-go Advisory build 1.17.13-3ubuntu1.2 USN-7061-1
Ubuntu jammy golang-1.17-src Advisory build 1.17.13-3ubuntu1.2 USN-7061-1
Ubuntu jammy golang-1.18 Advisory build 1.18.1-1ubuntu1.2 USN-7109-1
Ubuntu jammy golang-1.18-go Advisory build 1.18.1-1ubuntu1.2 USN-7109-1
Ubuntu jammy golang-1.18-src Advisory build 1.18.1-1ubuntu1.2 USN-7109-1
Ubuntu xenial golang-1.18 Advisory build 1.18.1-1ubuntu1~16.04.6+esm1 USN-7109-1
Ubuntu xenial golang-1.18-go Advisory build 1.18.1-1ubuntu1~16.04.6+esm1 USN-7109-1
Ubuntu xenial golang-1.18-src Advisory build 1.18.1-1ubuntu1~16.04.6+esm1 USN-7109-1

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.

en · Go · cna

Vendor advisories explicitly linked to this CVE.

5

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Go toolchain cmd/go 0 to < 1.21.0-0 (affected · semver)Default: unaffected Go · cna
gotoolchain cmd\/go 0 to < 1.21.0-0 (affected · semver)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-138 CWE-138: Improper Neutralization of Special Elements (Go · cna)

References

6

Provider assertions

3

Go · cna

Output of "go env" does not sanitize values in cmd/go

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
96c6584a9dbc92c1bd9f1eef7e16712a735fef9f7aef2907a27659ecb421ff3a
Ingested
23 Sep 2026, 08:06:44 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected