MTIby Motiontic
Colour theme
VulnerabilityCVE-2023-24531WID-SEC-W-2026-1706:CVE-2023-24531

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

Not on CISA KEV
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • BSI CERT-Bund Source: BSI CERT-Bund
  • CISA Vulnrichment Source: CISA Vulnrichment
  • CVE List Source: CVE Program (cve.org)