CVE-2023-24531
No exploitation reported by the sources we read.
- Published2024-07-02
- Fixed in1.21.0-0
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-07-0220:15CVE publishedNVD
Versions per branch
CISA-ADP · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.21 | < 1.21.0-0 | 1.21.0-0 | CISA-ADP · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As Go, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Go toolchain cmd/goother versions: not affected
package cmd/gohttps://pkg.go.dev
Affected- < 1.21.0-0fixed in 1.21.0-0semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-07-02
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- argo-workflowsWolfiall versions · fixed in 3.6.5-r2
- argo-workflowsCleanStartall versions · fixed in 3.6.19-r5
- argo-workflowsCleanStartall versions · fixed in 3.7.15-r0
- argo-workflowsCleanStartall versions · fixed in 3.7.17-r0
- argo-workflowsChainguardall versions · fixed in 3.6.5-r2
- go-1.20Wolfiall versions · no fixed version listed
- go-1.20MinimOSall versions · no fixed version listedand 1 other package
- go-1.20Chainguardall versions · no fixed version listed
29 more package ranges on OSV.dev
Fix
- Update Gotoolchain cmd\/go to 1.21.0-0
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-26
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2024-08-21
- CISA-ADPCVSS 3.19.82024-08-21
- FIRST EPSSEPSS score1.6 %2026-11-25
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-43104same flawAzure Linux · MIT
- AZL-43110same flawAzure Linux · MIT
- AZL-52719same flawAzure Linux · MIT
- AZL-79036same flawAzure Linux · MIT
- AZL-98667same flawAzure Linux · MIT
- BIT-golang-2023-24531same flawBitnami · Apache-2.0
- CGA-22w6-4rg3-rh33same flawChainguard · CC-BY-NC-ND-4.0
- CGA-242m-944m-9mjcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2727-7246-gx62same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2q36-jfwp-pm86same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2rpp-rxr7-jm3gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-329m-wwrf-v4w2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3c3c-39mg-236vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3jwc-8582-6cm9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3v8x-xr87-2488same flawChainguard · CC-BY-NC-ND-4.0
- CGA-45xf-49p4-xgjmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-46vv-ppv5-32qwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4cm4-6p4v-gv6xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4fc2-r53r-qh99same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4j3w-8cpx-xg65same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4qg6-vfc4-fj7csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-52vv-5qv5-q4f2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5fwg-p2fq-3grfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5rj3-2x34-pxvxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5v85-rp33-g534same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6g77-r8gh-4gcvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6m5q-fq4v-4x52same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6p4f-j8cj-f8vhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-739h-3v89-r79csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7g4r-983h-jrfrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-82w5-2gfx-4p56same flawChainguard · CC-BY-NC-ND-4.0
- CGA-83rp-24r9-cwq7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8j6q-q8gc-c9g2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8wh6-fpr5-mwxrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8xhm-89mf-cfq9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-968r-mhhm-7p8xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-97mr-vxgh-693wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-99hj-5vpf-8xvpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9h64-j93w-5g3csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9vhq-hq67-33ggsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c3p8-qw95-763csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c58p-xqcv-vmhhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cfj4-33ph-wrhpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cg7p-57r3-wc6csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cq82-mhr9-m6crsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cxhw-vcx2-jp85same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f8wp-w97f-9wmpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fgvw-8m6m-q8gpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fh99-2jvq-mrm6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fmjw-55r9-v55fsame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-07-02
- Last modified
- 2026-06-17
- NVD status
- Deferred
- GitHub advisory
- GHSA-cwpg-qgc6-jxvq
Frequently asked questions
What is CVE-2023-24531?
Is CVE-2023-24531 actively exploited?
What is the CVSS score for CVE-2023-24531?
Running Go? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-cwpg-qgc6-jxvq
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0