On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://go.dev/cl/797880 Patch
- https://go.dev/issue/79005 Issue Tracking, Patch
- https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc Mailing List, Patch, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2026-4970 Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.8 · golangNVD modified 2026-10-25 17:10
Affected (CPE criteria) 2
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*cpe:2.3:a:golang:go:1.27:rc1:*:*:*:*:*:*
References 4
- https://go.dev/cl/797880 Patch
- https://go.dev/issue/79005 Issue Tracking, Patch
- https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc Mailing List, Patch, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2026-4970 Vendor Advisory