CVE-2026-27139
2.5
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Go standard library | os | 0 < 1.25.8 | affected |
| Go standard library | os | 1.26.0-0 < 1.26.1 | affected |
Weaknesses
- CWE-363: Race Condition Enabling Link Following
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://go.dev/issue/77827
- https://go.dev/cl/749480
- https://pkg.go.dev/vuln/GO-2026-4602
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.