CVE-2026-27139

published 6 Mar 2026 · updated 12 Mar 2026

FileInfo can escape from a Root in os

2.5LowCVSS 2.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.25.8 and 1.26.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.25.8, >=1.26.0-0 <1.26.11.25.8, 1.26.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-27139 severity on Zeptric[![CVE-2026-27139](https://zeptric.io/badge/cve/CVE-2026-27139.svg)](https://zeptric.io/cve/CVE-2026-27139)