Go before 1.17.10 and 1.18.x before 1.18.2 has Incorrect Privilege Assignment. When called with a non-zero flags parameter, the Faccessat function could incorrectly report that a file is accessible.
https://security.netapp.com/advisory/ntap-20220729-0001/
https://security.gentoo.org/glsa/202208-02
https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU