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
| Link | Resource |
|---|---|
| https://go.dev/cl/749480 | Mailing List |
| https://go.dev/issue/77827 | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk | Release Notes |
| https://pkg.go.dev/vuln/GO-2026-4602 | Vendor Advisory |
Configurations
Configuration 1 (hide)
|
History
21 Apr 2026, 14:32
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://go.dev/cl/749480 - Mailing List | |
| References | () https://go.dev/issue/77827 - Issue Tracking | |
| References | () https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk - Release Notes | |
| References | () https://pkg.go.dev/vuln/GO-2026-4602 - Vendor Advisory | |
| Summary |
|
|
| CWE | CWE-22 | |
| CPE | cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:* cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
|
| First Time |
Golang go
Golang |
09 Mar 2026, 15:15
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 2.5 |
06 Mar 2026, 22:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-03-06 22:16
Updated : 2026-04-21 14:32
NVD link : CVE-2026-27139
Mitre link : CVE-2026-27139
CVE.ORG link : CVE-2026-27139
JSON object : View
Products Affected
golang
- go
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
