CVE-2023-29403Unsafe behavior in setuid/setgid binaries in runtime
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 22.04 | golang-1.17 | Fixed | 1.17.13-3ubuntu1.2 | UBUNTU-CVE-2023-29403 |
| Ubuntu 22.04 | golang-1.18 | Fixed | 1.18.1-1ubuntu1.2 | UBUNTU-CVE-2023-29403 |
| Ubuntu 22.04 | golang-1.20 | Under investigation | UBUNTU-CVE-2023-29403 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 20.04 | golang-1.18 | Fixed | 1.18.1-1ubuntu1~20.04.3 | UBUNTU-CVE-2023-29403 |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | 1.18.1-1ubuntu1~18.04.4+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-29403 |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 16.04 | golang | Fix pending | ||
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | 1.18.1-1ubuntu1~16.04.6+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-29403 |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 14.04 | golang | Fix pending | ||
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2023-29403 | |
| Ubuntu 14.04 | golang-1.6 | Fix pending | ||
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2023-29403 | |
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang-race | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang-race | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| AlmaLinux 9 | go-toolset | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang-bin | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang-docs | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang-misc | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang-race | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang-src | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 9 | golang-tests | Fixed | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux 8 | delve | Fixed | 1.9.1-1.module_el8.8.0+3471+a62632a0 | ALSA-2023:3922 |
| AlmaLinux 8 | go-toolset | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang-bin | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang-docs | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang-misc | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang-race | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang-src | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux 8 | golang-tests | Fixed | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| Rocky Linux 9 | go-toolset | Fixed | 0:1.19.10-1.el9_2 | RLSA-2023:3923 |
| Rocky Linux 9 | golang | Fixed | 0:1.19.10-1.el9_2 | RLSA-2023:3923 |
| Alpine Linux 3.24 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Alpine Linux 3.23 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Alpine Linux 3.22 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Alpine Linux 3.21 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Alpine Linux 3.20 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Alpine Linux 3.19 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Alpine Linux 3.18 | go | Fixed | 1.20.5-r0 | ALPINE-CVE-2023-29403 |
| Go library | stdlib | Fixed | 1.19.10 | GO-2023-1840 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go standard library runtime: affected: before 1.19.10, 1.20.0-0 to before 1.20.5; fixed in
1.19.10,1.20.5
References
- https://go.dev/issue/60272
- https://go.dev/cl/501223
- https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
- https://pkg.go.dev/vuln/GO-2023-1840
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/
- https://security.gentoo.org/glsa/202311-09
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.