Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-24531

Command go env is documented as outputting a shell script containing t ...

Overview

Published
2 Jul 2024
Modified
17 Jun 2026
Critical CVE
1 Registry packages
11 OS packages
9 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages · 1

Packages affected by CVE-2023-24531
EcosystemPackageVulnerableFixed in
Bitnami golang <1.21.0-0 1.21.0-0

Open a package to see all its vulnerabilities.

Operating systems · 18 fixes

Azure Linux 1 release · 1 package

fixed 1
golang
Azure Linux fixes for CVE-2023-24531
ReleasePackageFixed in
3.0 golang 0:1.21.0-1.azl3

Photon OS 1 release · 1 package

fixed 1
go
Photon OS fixes for CVE-2023-24531
ReleasePackageFixed in
5.0 go 1.26.3-1.ph5

chainguard 1 release · 3 packages

fixed 3
kubeflow-katib newrelic-fluent-bit-output argo-workflows
chainguard fixes for CVE-2023-24531
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40
newrelic-fluent-bit-output 2.4.0-r5
argo-workflows 3.6.5-r2

debian 2 releases · 2 packages

affected 2
golang-1-15 golang-1-19
debian fixes for CVE-2023-24531
ReleasePackageFixed in
11 golang-1-15 affected
12 golang-1-19 affected

echo 1 release · 1 package

affected 1
golang-1-19
echo fixes for CVE-2023-24531
ReleasePackageFixed in
golang-1-19 affected

minimos 1 release · 1 package

fixed 1
solr-operator-0-8
minimos fixes for CVE-2023-24531
ReleasePackageFixed in
solr-operator-0-8 0.8.1-r1

root.io debian 1 release · 1 package

affected 1
rootio-golang-1-19
root.io debian fixes for CVE-2023-24531
ReleasePackageFixed in
12 rootio-golang-1-19 affected

ubuntu 4 releases · 2 packages

fixed 5
golang-1-18 golang-1-17
ubuntu fixes for CVE-2023-24531
ReleasePackageFixed in
18.04-ESM golang-1-18 1.18.1-1ubuntu1~18.04.4+esm1
20.04 golang-1-18 1.18.1-1ubuntu1~20.04.3
20.04-ESM golang-1-18 1.18.1-1ubuntu1~20.04.3
22.04 golang-1-17 1.17.13-3ubuntu1.2
22.04 golang-1-18 1.18.1-1ubuntu1.2

wolfi 1 release · 3 packages

fixed 3
kubeflow-katib newrelic-fluent-bit-output argo-workflows
wolfi fixes for CVE-2023-24531
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40
newrelic-fluent-bit-output 2.4.0-r5
argo-workflows 3.6.5-r2

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.