{"id":"CVE-2023-29403","aliases":["CVE-2023-29403","GO-2023-1840","BIT-GOLANG-2023-29403"],"related":["CGA-xvp7-rwmp-pp3m","RHSA-2023:3920","RHSA-2023:3922","RHSA-2023:3923"],"kind":"vulnerability","state":"published","title":"Unsafe behavior in setuid/setgid binaries in runtime","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En las plataformas Unix, el entorno de ejecución de Go no se comporta de forma diferente cuando se ejecuta un binario con los bits setuid/setgid. Esto puede ser peligroso en ciertos casos, como cuando se vuelca el estado de la memoria o se asume el estado de los descriptores de archivos de E/S estándar. Si se ejecuta un binario setuid/setgid con los descriptores de archivos de E/S estándar cerrados, la apertura de cualquier archivo puede provocar que se lea o escriba contenido inesperado con privilegios elevados. De manera similar, si se finaliza un programa setuid/setgid, ya sea por pánico o señal, puede filtrar el contenido de sus registros.","source":"nvd"}],"published":"2023-06-08T20:16:06.000Z","modified":"2026-09-08T08:47:48.870Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-642","CWE-668"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.19.10","status":"affected"},{"type":"semver","introduced":"1.20.0-0","fixed":"1.20.5","status":"affected"}],"vendor":"Go standard library","product":"runtime","package":"runtime","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.10"},{"type":"semver","introduced":"1.20.0-0","status":"affected","fixed":"1.20.5"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.19.10"},{"status":"affected","introduced":"1.20.0","fixed":"1.20.5"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"38"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.10"},{"type":"semver","introduced":"1.20.0","status":"affected","fixed":"1.20.5"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/issue/60272","tags":["issue-tracking","report","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/cl/501223","tags":["fix","patch","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ","tags":["discussion","mailing-list","release-notes","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1840","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/","tags":["discussion","mailing-list","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20241220-0009/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29403","tags":["web"],"sources":["bitnami"]}],"credits":["Vincent Dehors from Synacktiv"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-01-06T19:53:25.670Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-29403","url":"https://www.cve.org/CVERecord?id=CVE-2023-29403","licence":"CVE Terms of Use","modified":"2025-02-13T16:49:14.029Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1840","url":"https://pkg.go.dev/vuln/GO-2023-1840","licence":"CC-BY-4.0","modified":"2026-02-04T03:48:08.792Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-29403","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29403","licence":"Public domain","modified":"2026-06-17T05:49:58.430Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2023-29403","url":"https://osv.dev/vulnerability/BIT-GOLANG-2023-29403","licence":"Apache-2.0","modified":"2026-09-08T08:47:48.870Z"}],"updatedAt":"2026-11-25T22:58:24.688Z","epss":{"score":0.00432,"percentile":0.39314,"date":"2026-12-01T12:00:22.000Z"}}