2.5Low

CVE-2026-27139FileInfo can escape from a Root in os

Go standard library os Published: (8 months ago)

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.

Weakness (CWE): CWE-363CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library os < 1.25.8, 1.26.0-0 – < 1.26.1
golang go < 1.25.8

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.25.8
  • cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*