CVE-2026-27139
LOW 2.5CVSS 3.1FileInfo 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.
- Published
- 6 Mar 2026
- Last modified
- 23 Nov 2026
- Assigned by
- security@golang.org
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- BIT-golang-2026-27139GO-2026-4602
- Sources
- NVDJSONCVE ListJSONOSV GO-2026-4602JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | LOW 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| CVE List | CISA-ADP | CVSS 3.1 | LOW 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.25.8 | 1.25.8 |
| NVD | golang | gocpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:* |
= 1.26.0 | |
| CVE List | https://pkg.go.dev | os | < 1.25.8; >= 1.26.0-0, < 1.26.1 | 1.25.8, 1.26.1 |
| OSV | Go | stdlib | < 1.25.8; >= 1.26.0-0, < 1.26.1 | 1.25.8, 1.26.1 |
References
- https://go.dev/cl/749480 · Mailing List, FIX
- https://go.dev/issue/77827 · Issue Tracking, REPORT
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk · Release Notes, WEB
- https://pkg.go.dev/vuln/GO-2026-4602 · Vendor Advisory
History
- 25 Nov 2026 20:34 UTC · CVE List: first stored (published 6 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Mar 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 6 Mar 2026)