CVE-2023-24531
Command go env is documented as outputting a shell script containing t ...
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | golang | 0:1.21.0-1.azl3 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.26.3-1.ph5 |
chainguard 1 release · 3 packages
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| solr-operator-0-8 | 0.8.1-r1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
ubuntu 4 releases · 2 packages
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| newrelic-fluent-bit-output | 2.4.0-r5 | |
| argo-workflows | 3.6.5-r2 |
References
- go.dev https://go.dev/cl/488375
- go.dev https://go.dev/cl/493535
- go.dev https://go.dev/issue/58508
- groups.google.com https://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-24531
- pkg.go.dev https://pkg.go.dev/vuln/GO-2024-2962
- security.netapp.com https://security.netapp.com/advisory/ntap-20250328-0005/
- ubuntu.com https://ubuntu.com/security/notices/USN-7061-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7109-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-24531
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.