Skip to main content
← All vulnerabilities
CVE-2023-29403GO-2023-1840BIT-GOLANG-2023-29403

Unsafe behavior in setuid/setgid binaries in runtime

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.19.10, 1.20.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • runtime

    fixed in 1.19.10; From 1.20.0-0 · fixed in 1.20.5

  • stdlibGo

    fixed in 1.19.10; From 1.20.0-0 · fixed in 1.20.5

References 7

go.dev

groups.google.com

pkg.go.dev

lists.fedoraproject.org

security.gentoo.org