{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-29403","id":"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. 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 wi","descriptionLong":"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.","published":"2023-06-08T20:19:13.222Z","updated":"2026-10-28T02:30:24.070122990Z","reserved":"2023-04-05T19:36:35.042Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Go standard library runtime"],"affectedProducts":[{"vendor":"Go standard library","product":"runtime","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.19.10","status":"affected","versionType":"semver"},{"version":"1.20.0-0","lessThan":"1.20.5","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.19.10",">=1.20.0-0 <1.20.5"],"fixed":["1.19.10","1.20.5"],"advisory":"GO-2023-1840"}],"cwes":["CWE-642","CWE-668"],"aliases":["BIT-golang-2023-29403","GO-2023-1840"],"references":[{"url":"https://go.dev/issue/60272","tags":["x_transferred","Issue Tracking","web","report"]},{"url":"https://go.dev/cl/501223","tags":["x_transferred","Patch","web","fix"]},{"url":"https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ","tags":["x_transferred","Mailing List","Release Notes","web"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1840","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/","tags":["x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":["x_transferred","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20241220-0009/","tags":["advisory"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29403.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29403","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00429,"epssPercentile":0.37762,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-29403","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29403","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-29403","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-29403","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}