{"id":"CVE-2023-29403","published":"2023-06-08T20:19:13Z","modified":"2025-02-13T16:49:14Z","title":"Unsafe behavior in setuid/setgid binaries in runtime","vendor":"Go standard library","product":"runtime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00429,"percentile":0.37984,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/60272","tags":[]},{"url":"https://go.dev/cl/501223","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-1840","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/","tags":[]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241220-0009/","tags":[]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.6},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"runtime","versions":["< 1.19.10",">= 1.20.0-0, < 1.20.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-01-06T19:53:25.670138Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.19.10",">=1.20.0-0, <1.20.5"],"patched":["1.19.10","1.20.5"],"from":["GO-2023-1840"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-32974","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-24539","published":"2023-05-11","fixed":"1.20.4","kev":false,"link":{"from":"CVE-2023-24539","to":"CVE-2023-29403","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.19.9","toFixed":"1.19.10","daysApart":28}]}},{"cve":"CVE-2023-24540","published":"2023-05-11","fixed":"1.20.4","kev":false},{"cve":"CVE-2023-29400","published":"2023-05-11","fixed":"1.20.4","kev":false},{"cve":"CVE-2023-29403","published":"2023-06-08","fixed":"1.20.5","kev":false},{"cve":"CVE-2023-29406","published":"2023-07-11","fixed":"1.20.6","kev":false,"link":{"from":"CVE-2023-29403","to":"CVE-2023-29406","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.19.10","toFixed":"1.19.11","daysApart":33}]}},{"cve":"CVE-2023-29409","published":"2023-08-02","fixed":"1.21.0-rc.4","kev":false},{"cve":"CVE-2023-39318","published":"2023-09-08","fixed":"1.21.1","kev":false}],"package":"Go:stdlib"}}