Skip to content
OpenAdvisories

Description

Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the variables "A=B" and "C=D".

Affected products

VendorProductAffectedFixed
Go standard library syscall < 1.18.8, 1.19.0-0 – < 1.19.3 1.18.8
Go standard library os/exec < 1.18.8, 1.19.0-0 – < 1.19.3 1.18.8

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 golang-1.19 1.19.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS golang-1.17 +2 No fix yet —
Ubuntu 20.04 LTS golang-1.13 +3 No fix yet —
Ubuntu 18.04 LTS golang-1.8 +2 No fix yet —
Ubuntu 16.04 LTS golang-1.6 +1 No fix yet —
Ubuntu 14.04 LTS golang-1.10 No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 20.04 LTS golang-1.16 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.13 +2 No fix yet —
Ubuntu Pro 16.04 LTS golang-1.13 +1 No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP4 go1.18 1.18.8-150000.1.37.1 SUSE-SU-2022:4055-1
SLES 15 SP4 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLES 15 SP4 go1.19 1.19.3-150000.1.15.1 SUSE-SU-2022:4054-1
SLES 15 SP3 go1.18 1.18.8-150000.1.37.1 SUSE-SU-2022:4055-1
SLES 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLES 15 SP3 go1.19 1.19.3-150000.1.15.1 SUSE-SU-2022:4054-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLE Real Time 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SLE HPC 15 SP3 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
SUSE Enterprise Storage 7.1 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.18 1.18.8-1.1 openSUSE-SU-2024:12471-1
openSUSE Tumbleweed go1.19 1.19.3-1.1 openSUSE-SU-2024:12472-1
openSUSE Leap 15.5 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
openSUSE Leap 15.4 go1.18 1.18.8-150000.1.37.1 SUSE-SU-2022:4055-1
openSUSE Leap 15.4 go1.18-openssl 1.18.10.1-150000.1.9.1 SUSE-SU-2023:2312-1
openSUSE Leap 15.4 go1.19 1.19.3-150000.1.15.1 SUSE-SU-2022:4054-1
openSUSE Leap 15.3 go1.18 1.18.8-150000.1.37.1 SUSE-SU-2022:4055-1
openSUSE Leap 15.3 go1.19 1.19.3-150000.1.15.1 SUSE-SU-2022:4054-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 golang +7 1.19.3-2.amzn2023.0.2 ALAS2023-2023-048
Amazon Linux 2023 golist 0.10.1-11.amzn2023.0.3 ALAS2023-2023-046

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 delve 1.8.3-1.0.1.module+el8.7.0+20882+f24d347b ELSA-2023-18908, ELSA-2022-24267
Oracle Linux 8 go-toolset 1.18.8-1.module+el8.7.0+20882+f24d347b ELSA-2023-18908, ELSA-2022-24267
Oracle Linux 8 golang +6 1.18.8-1.0.1.module+el8.7.0+20882+f24d347b ELSA-2023-18908, ELSA-2022-24267

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.18.8 · >= 1.19.0-0, < 1.19.3 1.18.8, 1.19.3 GO-2022-1095

Advisories 14

References