FileInfo can escape from a Root in os

Summary

CVECVE-2026-27139
StatePUBLISHED
AssignerGo
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-03-06 22:16:01 UTC
Updated2026-04-21 14:32:36 UTC
DescriptionOn 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


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED2.5LOWCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary2.5LOWCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS: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)

TypeVendorProductVersionUpdateEditionLanguage
Application Golang Go All All All All
Application Golang Go 1.26.0 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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)

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report