FileInfo can escape from a Root in os
Summary
| CVE | CVE-2026-27139 |
|---|---|
| State | PUBLISHED |
| Assigner | Go |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-06 22:16:01 UTC |
| Updated | 2026-04-21 14:32:36 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 2.5 LOW from ADP
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS: 0.000080000 probability, percentile 0.007160000 (date 2026-04-21)
Problem Types: CWE-22 | CWE-363: Race Condition Enabling Link Following
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 2.5 | LOW | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 2.5 | LOW | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
NoneAvailability
NoneCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Go Standard Library | Os | affected 1.25.8 semver | Not specified |
| CNA | Go Standard Library | Os | affected 1.26.0-0 1.26.1 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| pkg.go.dev/vuln/GO-2026-4602 | [email protected] | pkg.go.dev | Vendor Advisory |
| groups.google.com/g/golang-announce/c/EdhZqrQ98hk | [email protected] | groups.google.com | Release Notes |
| go.dev/cl/749480 | [email protected] | go.dev | Mailing List |
| go.dev/issue/77827 | [email protected] | go.dev | Issue Tracking |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Miloslav Trmač of Red Hat (en)
There are currently no legacy QID mappings associated with this CVE.