Description
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.
Metrics
CVSS 3.1 2.5/10
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | os | < 1.25.8; >= 1.26.0-0, < 1.26.1 |
References
- https://go.dev/cl/749480Mailing List
- https://go.dev/issue/77827Issue Tracking
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hkRelease Notes
- https://pkg.go.dev/vuln/GO-2026-4602Vendor Advisory
Timeline
- Published
- Mar 6, 2026
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed