{"id":"GO-2023-1840","revision":"d4dd8b060f074d44afdac804260070d4","records":[{"revision":"d4dd8b060f074d44afdac804260070d4","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2023-1840","aliases":["BIT-golang-2023-29403","CVE-2023-29403"],"title":"Unsafe behavior in setuid/setgid binaries in runtime","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.\n\nIf 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.","state":0,"publishedAt":"2023-06-08T20:16:06+00:00","modifiedAt":"2026-02-04T03:48:08.792378+00:00","affected":[{"ecosystem":"Go","name":"stdlib","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.19.10"},{"kind":"introduced","version":"1.20.0-0"},{"kind":"fixed","version":"1.20.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/issue/60272","https://go.dev/cl/501223","https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ"],"sourceUrl":"https://osv.dev/vulnerability/GO-2023-1840","license":"OSV · upstream source license applies","key":"osv:GO-2023-1840","identifiers":["GO-2023-1840","BIT-golang-2023-29403","CVE-2023-29403"]},"retained":false,"historicalAffected":[]}],"coverage":[]}