---
title: "CVE-2023-24531"
canonical_url: "https://pkgseek.com/security/CVE-2023-24531"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2023-24531

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.

CVE-2023-24531 is rated MEDIUM, with 13 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM
- **Affected builds**: 13
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | golang-1.13 | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.13-doc | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.13-go | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.13-src | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14 | 1.14.2-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14-doc | 1.14.2-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14-go | 1.14.2-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14-src | 1.14.2-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.17-doc | 1.17.3-1ubuntu2 | — |
| Ubuntu | jammy | golang-1.18 | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-doc | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-go | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-src | 1.18.1-1ubuntu1 | — |
