GO-2026-4602

FileInfo can escape from a Root in os

En bref

Publiée
Mise à jour
CVE
CVE-2026-27139
Alias
BIT-golang-2026-27139

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.

Paquets affectés

PaquetVersions
Go · stdlibintroduced 0, fixed 1.25.8, introduced 1.26.0-0, fixed 1.26.1

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database