cve.bz

CVE-2023-24531 go toolchain cmd/go

9.8 criticalEPSS 0.8%Fix available

Critical (9.8) in go toolchain cmd/go. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.21.0-0.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-08-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-24531 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-24531?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-24531?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-24531 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go toolchain cmd/gobefore 1.21.0-0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2024-2962Gotoolchain<1.21.0-01.21.0-0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2023-24531
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2023-24531
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2023-24531
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2023-24531
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.20 and 1 moreno fix listedUBUNTU-CVE-2023-24531
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.3UBUNTU-CVE-2023-24531 USN-7109-1
Ubuntu22.04:LTSgolang-1.171.17.13-3ubuntu1.2UBUNTU-CVE-2023-24531 USN-7061-1
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2023-24531 USN-7109-1
Ubuntu22.04:LTSgolang-1.20, golang-1.21no fix listedUBUNTU-CVE-2023-24531
Ubuntu24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2023-24531
UbuntuPro:16.04:LTSgolang-1.181.18.1-1ubuntu1~16.04.6+esm1UBUNTU-CVE-2023-24531 USN-7109-1
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2023-24531
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2023-24531
2 more for Ubuntu in the JSON and on Ubuntu's page.
Azure Linux2golang1.21.0-1AZL-43110
Azure Linux2msft-golang1.21.0-1AZL-43104
Azure Linux3golangno fix listedAZL-79036 AZL-98667
Azure Linux3golang1.21.0-1AZL-52719

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON