Vulnerability Report: GO-2026-4970
- CVE-2026-39822
- Affects: os
- Published: Jul 07, 2026
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 Packages
-
PathVersionsSymbols
-
before go1.25.12, from go1.26.0-0 before go1.26.5, from go1.27.0-0 before go1.27.0-rc.2
Aliases
References
- https://go.dev/issue/79005
- https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc
- https://go.dev/cl/797880
- https://vuln.go.dev/ID/GO-2026-4970.json
Credits
- Mundur (https://github.com/M0nd0R)
Feedback
See anything missing or incorrect?
Suggest an edit to this report.