CVE Catalog

CVE-2026-27139

LowCVSS 2.5
Published: Updated: Translated: NVD NIST

Summary

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.

Risk Assessment

An attacker can obtain file metadata from outside the allowed directory, potentially revealing information about the filesystem structure.

Recommendation

Update the Go library to a version containing the fix and restrict access to filesystem operations.

Other vulnerabilities in Go

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS