CVE-2023-24531
Output of "go env" does not sanitize values in cmd/go
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.840% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 9.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:50:18.698Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T16:50:18.698Z | Ubuntu Security |
| epss | verified | 2026-11-19T16:04:35.920Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:40.410Z | OSV |
| affected | verified | 2026-11-19T12:56:48.454Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:48.454Z | CVE Program |
Affected versions and configuration
Go toolchain cmd/go; default status: unaffected: 0 to < 1.21.0-0 [affected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.22",
"debian": "https://tracker.debian.org/pkg/golang-1.22",
"source": "https://ubuntu.com/security/cve?package=golang-1.22",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.22",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "1.22.2-2~22.04",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "1.22.2-2ubuntu0.1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "1.22.8-1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "1.22.2-2~20.04.1",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "Go toolchain",
"product": "cmd/go",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.21.0-0",
"versionType": "semver"
}
],
"packageName": "cmd/go",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://go.dev/cl/488375",
"tags": [
"x_transferred"
]
},
{
"url": "https://go.dev/cl/493535",
"tags": [
"x_transferred"
]
},
{
"url": "https://go.dev/issue/58508",
"tags": [
"x_transferred"
]
},
{
"url": "https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ",
"tags": [
"x_transferred"
]
},
{
"url": "https://pkg.go.dev/vuln/GO-2024-2962",
"tags": [
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20250328-0005/"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-03-28T15:02:59.076Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 9.8,
"attackVector": "NETWORK",
"baseSeverity": "CRITICAL",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-24531",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-08-21T13:30:10.564913Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:gotoolchain:cmd\\/go:*:*:*:*:*:*:*:*"
],
"vendor": "gotoolchain",
"product": "cmd\\/go",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.21.0-0",
"versionType": "semver"
}
],
"defaultStatus": "unknown"
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-08-21T13:49:46.839Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2024-2962",
"aliases": [
"BIT-golang-2023-24531",
"CVE-2023-24531"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.21.0-0"
}
]
}
],
"package": {
"name": "toolchain",
"purl": "pkg:golang/toolchain",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2024-2962.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "cmd/go"
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/488375",
"type": "FIX"
},
{
"url": "https://go.dev/cl/493535",
"type": "FIX"
},
{
"url": "https://go.dev/issue/58508",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2024-2962",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | toolchain | Not a distribution channel | 1.21.0-0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:50:18.698ZArchived source JSON
Source publication: 2024-07-02T20:15:00.000Z
Source modification: 2025-07-29T11:11:30.203ZDocument fingerprint
5e3a0376f2a56a54c6060da4117b4b585eb797d09f8e06f4068d58213af6defd - CVE ProgramConsulted: 2026-11-19T12:56:48.454ZArchived source JSON
Source publication: 2024-07-02T19:51:48.731Z
Source modification: 2025-03-28T15:02:59.076ZDocument fingerprint
96c6584a9dbc92c1bd9f1eef7e16712a735fef9f7aef2907a27659ecb421ff3a - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:40.410ZArchived source JSON
Source publication: 2024-07-02T19:27:52.000Z
Source modification: 2026-02-04T03:51:26.716ZDocument fingerprint
bc4314d2fcdd026d1fe507f5e575d75cbddb3cec98f7a1d5cbcc4e6949d26bbb - FIRST EPSSConsulted: 2026-11-19T16:04:35.920ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
e984bc4a8ff3b06285e2eddb70222ac8a60d7c809f73be8fc1d22065f95250ad
Official status history
- UNKNOWN → PUBLISHED · · evidence