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.
https://pkg.go.dev/vuln/GO-2026-4602
Published: 2026-03-06
Updated: 2026-04-21
Named Vulnerability: GO-2026-4602Named Vulnerability: GHSA-rv83-g57w-fr8j
Base Score: 1.7
Vector: CVSS2#AV:L/AC:L/Au:S/C:P/I:N/A:N
Severity: Low
Base Score: 2.5
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Severity: Low
EPSS: 0.00209