Vulnerability Report: GO-2026-4602
- CVE-2026-27139
- Affects: os
- Published: Mar 06, 2026
On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root.
Affected Packages
-
PathVersionsSymbols
-
before go1.25.8, from go1.26.0-0 before go1.26.1
Aliases
References
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://go.dev/issue/77827
- https://go.dev/cl/749480
- https://vuln.go.dev/ID/GO-2026-4602.json
Credits
- Miloslav Trmač of Red Hat
Feedback
See anything missing or incorrect?
Suggest an edit to this report.