Skip to main content
No exploitation reportedFix available

CVE-2023-24531

No exploitation reported by the sources we read.

  • Published2024-07-02
  • Fixed in1.21.0-0

Am I 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
  1. 2024-07-0220:15CVE publishedNVD

Versions per branch

CISA-ADP · OSV
Gotoolchain cmd\/go
BranchAffectedFixed in
1.21< 1.21.0-01.21.0-0

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

Full record on NVD

Fix

  1. 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
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2023-24531 actively exploited?

Active exploitation of CVE-2023-24531 has not been confirmed. Its EPSS score was 1.6% on 2026-11-25, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-24531?

CVE-2023-24531 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record