CVE-2026-27139

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*

History

21 Apr 2026, 14:32

Type Values Removed Values Added
References () https://go.dev/cl/749480 - () https://go.dev/cl/749480 - Mailing List
References () https://go.dev/issue/77827 - () https://go.dev/issue/77827 - Issue Tracking
References () https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk - () https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk - Release Notes
References () https://pkg.go.dev/vuln/GO-2026-4602 - () https://pkg.go.dev/vuln/GO-2026-4602 - Vendor Advisory
Summary
  • (es) En plataformas Unix, al listar el contenido de un directorio usando File.ReadDir o File.Readdir, el FileInfo devuelto podría hacer referencia a un archivo fuera de la Raíz en la que se abrió el Archivo. El impacto de este escape se limita a la lectura de metadatos proporcionados por lstat desde ubicaciones arbitrarias en el sistema de archivos sin permitir la lectura o escritura de archivos fuera de la raíz.
CWE CWE-22
CPE cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
First Time Golang go
Golang

09 Mar 2026, 15:15

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 2.5

06 Mar 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-06 22:16

Updated : 2026-04-21 14:32


NVD link : CVE-2026-27139

Mitre link : CVE-2026-27139

CVE.ORG link : CVE-2026-27139


JSON object : View

Products Affected

golang

  • go
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')