CVE-2026-27139 Details
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.
A directory traversal vulnerability has been identified in the Go programming language's standard library, specifically within the 'os' package. This issue affects Go versions prior to 1.25.8 and from 1.26.0 up to, but not including, 1.26.1. On Unix platforms, when directory contents are listed using 'File.ReadDir' or 'File.Readdir', the returned 'FileInfo' can reference files outside the designated root directory. The vulnerability arises because these functions use 'lstat' to retrieve file metadata, which can be manipulated through symbolic links to access information from arbitrary locations on the filesystem. While this escape allows probing for the presence or absence of files and gathering metadata such as file sizes, it does not permit reading or writing files outside the root directory.
Users can upgrade to Go versions 1.26.1 or 1.25.8, both of which include the necessary fix. Instructions for downloading these versions are available on the Go website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/749480 | [email protected] | Mailing List |
| https://go.dev/issue/77827 | [email protected] | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk | [email protected] | Release Notes |
| https://pkg.go.dev/vuln/GO-2026-4602 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.25.8 1.26.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | Initial Analysis | [email protected] |
| Mar 9, 2026 | CVE Modified | CISA-ADP |
| Mar 6, 2026 | New CVE Received | [email protected] |