CVE-2026-27139
Low 2.5No known exploitationFix availableFileInfo can escape from a Root in os
Record last updated
CVSS score
2.5
Low on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
0.2%
Higher than 12% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
None
Not in the KEV catalog
Description
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.
Weakness: CWE-22
Patching and mitigation
- Patch status
- Fix available (source: CVE record (Go))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- pkg.go.dev (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Go standard library | os | from 1.26.0-0 before 1.26.1 | 1.26.1 | CVE Program |
| Go standard library | os | all versions before 1.25.8 | 1.25.8 | CVE Program |
| golang | go | 1.26.0 | Not documented | NIST NVD |
| golang | go | all versions before 1.25.8 | 1.25.8 | NIST NVD |
Timeline
Disclosure
CVE record published by Go
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (Go)