Go before 1.16.12 and 1.17.x before 1.17.5 on UNIX allows write operations to an unintended file or unintended network connection as a consequence of erroneous closing of file descriptor 0 after file-descriptor exhaustion.
https://security.gentoo.org/glsa/202208-02
https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
https://lists.debian.org/debian-lts-announce/2022/01/msg00017.html
https://lists.debian.org/debian-lts-announce/2022/01/msg00016.html
https://groups.google.com/g/golang-announce/c/hcmEScgc00k
https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf