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

Published Jun 8, 2023
·
Updated

Golang Go could allow a local authenticated attacker to gain elevated privileges on the system, caused by a flaw when a binary is run with the setuid/setgid bits. By sending a specially crafted request, an authenticated attacker could exploit this vulnerability to gain elevated privileges. to read or write contents of the registers.

Other sources

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.

Launchpad

Unsafe behavior in setuid/setgid binaries in runtime

Microsoft

Affected Software

14 affected componentsFixes available
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
Golang Go<1.19.10
Golang Go>=1.20.0<1.20.5
Fedoraproject Fedora=38
redhat/go<1.20.5
1.20.5
redhat/go<1.19.10
1.19.10
IBM Concert Software<=1.0.0 - 1.0.1
Microsoft azl3 golang 1.20.7-1
Microsoft cbl2 golang 1.20.7-1
Microsoft cbl2 golang 1.21.6-1
Microsoft cbl2 golang 1.17.13-2
Microsoft cbl2 golang 1.18.8-7
Microsoft cbl2 msft-golang 1.20.7-1

Remediation

Event History

Jun 8, 2023
CVE Published
via MITRE·08:19 PM
Data Sourced
via MITRE·08:19 PM
DescriptionWeakness
Oct 10, 2024
Data Sourced
via Launchpad·01:15 PM
Description
Oct 21, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 15, 2024
Data Sourced
via Ubuntu·01:20 PM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·12:23 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·12:23 PM
Affected Software
Updated
via Microsoft·12:23 PM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-29403?

CVE-2023-29403 is a vulnerability in the Go programming language on Unix platforms, where the Go runtime does not behave differently when a binary is run with the setuid/setgid bits, which can be dangerous in certain cases.

2

What is the severity of CVE-2023-29403?

The severity of CVE-2023-29403 is high with a severity value of 7.8.

3

Which software versions are affected by CVE-2023-29403?

The affected software versions are Go up to version 1.19.10, Go versions 1.20.0 to 1.20.5, and Fedora version 38.

4

How can CVE-2023-29403 be exploited?

CVE-2023-29403 can be exploited by executing a setuid/setgid binary with standard I/O, allowing for dangerous actions like dumping memory state or assuming the status of standard I/O file descriptors.

5

Are there any references available for CVE-2023-29403?

Yes, you can find references for CVE-2023-29403 at the following links: [link1](https://go.dev/cl/501223), [link2](https://go.dev/issue/60272), [link3](https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203