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.
References
| Link | Resource |
|---|---|
| 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 |
Configurations
Configuration 1 (hide)
|
History
No history.
Information
Published : 2026-07-08 17:17
Updated : 2026-07-13 14:54
NVD link : CVE-2026-39822
Mitre link : CVE-2026-39822
CVE.ORG link : CVE-2026-39822
JSON object : View
Products Affected
golang
- go
CWE
CWE-61
UNIX Symbolic Link (Symlink) Following
