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.
References (4)
Core 4
Core References
Various Sources
https://go.dev/cl/749480
Issue Tracking
https://go.dev/issue/77827
Various Sources
https://pkg.go.dev/vuln/GO-2026-4602
Scores
CVSS v3
2.5
EPSS
0.0001
EPSS Percentile
0.6%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
golang/go
1.26.0
golang/go
< 1.25.8
Published
Mar 06, 2026
Tracked Since
Mar 07, 2026