Vulnerability · Published Jun 8, 2023 · Assigned by Go

CVE-2023-29403Unsafe behavior in setuid/setgid binaries in runtime

High 7.8

In plain English

A high-severity security flaw in runtime from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.4%top 62.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.9.1-1.module_el8.8.0+3471+a62632a0ALSA-2023:3922
AlmaLinux:8go-toolset1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9go-toolset1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang-bin1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang-bin1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang-docs1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang-docs1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang-misc1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang-misc1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang-race1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang-race1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang-src1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang-src1.19.10-1.el9_2ALSA-2023:3923
AlmaLinux:8golang-tests1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux:9golang-tests1.19.10-1.el9_2ALSA-2023:3923
Alpine:v3.20go1.20.5-r0ALPINE-CVE-2023-29403
Alpine:v3.21go1.20.5-r0ALPINE-CVE-2023-29403
Alpine:v3.22go1.20.5-r0ALPINE-CVE-2023-29403
Alpine:v3.23go1.20.5-r0ALPINE-CVE-2023-29403
Alpine:v3.24go1.20.5-r0ALPINE-CVE-2023-29403
Debian:12golang-1.19no fix listedDEBIAN-CVE-2023-29403
Gostdlib1.19.10, 1.20.5GO-2023-1840
Rocky Linux:9go-toolset0:1.19.10-1.el9_2RLSA-2023:3923
Rocky Linux:9golang0:1.19.10-1.el9_2RLSA-2023:3923
Ubuntu:22.04:LTSgolang-1.171.17.13-3ubuntu1.2USN-7061-1
Ubuntu:22.04:LTSgolang-1.171.17.13-3ubuntu1.2UBUNTU-CVE-2023-29403
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2USN-7109-1
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2023-29403
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2023-29403

Affected products (as reported)

VendorProductVersions
Go standard library runtime 0 – before 1.19.101.20.0-0 – before 1.20.5

References