CVEMETERBack to radar
OFFICIAL RECORD · Go

CVE-2023-24531

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 9.8 · critical

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 Security
CVSS: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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T16:50:18.698ZUbuntu Security
epssverified2026-11-19T16:04:35.920ZFIRST EPSS
patchesverified2026-11-19T12:52:40.410ZOSV
affectedverified2026-11-19T12:56:48.454ZCVE Program
lifecycleverified2026-11-19T12:56:48.454ZCVE 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&section=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 JSON
CVE 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryGo / packagetoolchainNot a distribution channel1.21.0-0Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history