Path Traversal in Golang Go
CVE-2026-27139
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 2.5 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.002, 12.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go — versions 1.26.0
- Go Standard Library OS — versions 0, 1.26.0-0
Weakness classification (CWE)
References
- groups.google.com/g/golang-announce/c/EdhZqrQ98hk (Release Notes)
- go.dev/issue/77827 (Issue Tracking)
- go.dev/cl/749480 (Mailing List)
- pkg.go.dev/vuln/GO-2026-4602 (Vendor Advisory)