Description
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.
Affected products
golang: go
References4
- groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc Mailing ListPatchVendor Advisory
- pkg.go.dev/vuln/GO-2026-4970 Vendor Advisory
- go.dev/cl/797880 Patch
- go.dev/issue/79005 Issue TrackingPatch
Metrics
- CVSS 3.1
-
7.8
HIGH
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 14 · as of 15 November 2026
- CWE
- CWE-61
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.