VulnWatch by ve1ve2
low 2.5 EPSS 0.22%

GO-2026-4602: FileInfo can escape from a Root in os

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
google stdlib

https://osv.dev/vulnerability/GO-2026-4602 ↗

osvgofix-available

FileInfo can escape from a Root in os 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: Go:stdlib Fixed in: 1.25.8, 1.26.1 References: https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk https://go.dev/issue/77827 https://go.dev/cl/749480

Linked vulnerabilities (1)

CVE-2026-27139 low 2.5 EPSS 0.22% (p12) NVDCVE.org
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

FileInfo can escape from a Root in os

CWE: CWE-22NVD: Analyzed

Also reported by (1)