Skip to content
OpenAdvisories

Description

On Unix platforms, the Go runtime does not behave differently when a binary is run with the setuid/setgid bits. This can be dangerous in certain cases, such as when dumping memory state, or assuming the status of standard i/o file descriptors. If a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Similarly, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers.

Affected products

VendorProductAffectedFixed
Go standard library runtime < 1.19.10, 1.20.0-0 – < 1.20.5 1.19.10

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 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS golang-1.17 1.17.13-3ubuntu1.2 USN-7061-1
Ubuntu 22.04 LTS golang-1.18 1.18.1-1ubuntu1.2 USN-7109-1
Ubuntu 22.04 LTS golang-1.20 No fix yet —
Ubuntu 20.04 LTS golang-1.13 +2 No fix yet —
Ubuntu 20.04 LTS golang-1.18 1.18.1-1ubuntu1~20.04.3 USN-7109-1
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 +1 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.18 1.18.1-1ubuntu1~18.04.4+esm1 USN-7109-1
Ubuntu Pro 16.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 16.04 LTS golang-1.18 1.18.1-1ubuntu1~16.04.6+esm1 USN-7109-1
ReleasePackageFixed inAdvisory
RHEL 9 golang +7 1.19.10-1.el9_2 RHSA-2023:3923
RHEL 8 delve 1.9.1-1.module+el8.8.0+16778+5fbb74f5 RHSA-2023:3922
RHEL 8 golang +7 1.19.10-1.module+el8.8.0+19203+782922b7 RHSA-2023:3922
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Devtools 2023 go-toolset-1.19 +10 1.19.10-1.el7_9 RHSA-2023:3920

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 golang +7 1.19.10-1.el9_2 ALSA-2023:3923
AlmaLinux 8 delve 1.9.1-1.module_el8.8.0+3471+a62632a0 ALSA-2023:3922
AlmaLinux 8 golang +7 1.19.10-1.module_el8.8.0+3571+89db2ae0 ALSA-2023:3922

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 golang +1 1.19.10-1.el9_2 RLSA-2023:3923
ReleasePackageFixed inAdvisory
SLES 15 SP5 go1.19 1.19.10-150000.1.34.1 SUSE-SU-2023:2525-1
SLES 15 SP5 go1.20 1.20.5-150000.1.14.1 SUSE-SU-2023:2526-1
SLES 15 SP4 go1.19 1.19.10-150000.1.34.1 SUSE-SU-2023:2525-1
SLES 15 SP4 go1.20 1.20.5-150000.1.14.1 SUSE-SU-2023:2526-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Real Time 15 SP3 go1.19 1.19.10-150000.1.34.1 SUSE-SU-2023:2525-1
SLE Real Time 15 SP3 go1.20 1.20.5-150000.1.14.1 SUSE-SU-2023:2526-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.19 1.19.10-1.1 openSUSE-SU-2024:12987-1
openSUSE Tumbleweed go1.20 1.20.5-1.1 openSUSE-SU-2024:12988-1
openSUSE Leap 15.5 go1.19 1.19.10-150000.1.34.1 SUSE-SU-2023:2525-1
openSUSE Leap 15.5 go1.20 1.20.5-150000.1.14.1 SUSE-SU-2023:2526-1
openSUSE Leap 15.4 go1.19 1.19.10-150000.1.34.1 SUSE-SU-2023:2525-1
openSUSE Leap 15.4 go1.20 1.20.5-150000.1.14.1 SUSE-SU-2023:2526-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.20.5-r0 —
Alpine v3.23 go 1.20.5-r0 —
Alpine v3.22 go 1.20.5-r0 —
Alpine v3.21 go 1.20.5-r0 —
Alpine v3.20 go 1.20.5-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.20.5-r0 —
Alpine v3.18 go 1.20.5-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 containerd +1 1.7.2-1.amzn2023.0.2 ALAS2023-2023-312
Amazon Linux 2023 golang +6 1.20.5-1.amzn2023.0.2 ALAS2023-2023-269
Amazon Linux 2 golang +6 1.20.5-1.amzn2.0.2 ALAS2-2023-2163

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang 1.20.7-1 —
Azure Linux 2 (CBL-Mariner) golang +1 1.20.7-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 golang +7 1.19.10-1.0.1.el9_2 ELSA-2023-3923
Oracle Linux 8 delve 1.9.1-1.0.1.module+el8.8.0+20964+30a27755 ELSA-2023-3922
Oracle Linux 8 go-toolset 1.19.10-1.module+el8.8.0+21109+b7104c00 ELSA-2023-3922
Oracle Linux 8 golang +6 1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 ELSA-2023-3922

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling kind 0.21.0-r0 —
Wolfi rolling policy-controller 0.7.0-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.19.10 · >= 1.20.0-0, < 1.20.5 1.19.10, 1.20.5 GO-2023-1840

Advisories 20

References