CVE-2026-27139

FileInfo can escape from a Root in os

Published Mar 6, 2026 CVSS 3.1 · 2.5 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang go
CPEs cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*
Vendors & Products Golang
Golang go
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 2.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library os
Vendors & Products Go Standard Library
Go Standard Library os
Type Values Removed Values Added
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.
Title FileInfo can escape from a Root in os
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Mar 9, 2026, 2:53 PM
Reserved
Feb 17, 2026, 7:57 PM
Status
Analyzed
Published
Mar 6, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:26 AM
Severity
Low
Public date
Mar 6, 2026, 9:28 PM