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

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.

Published

CVSS 3.1 score 2.5 out of 10.

Related technologies

Reported versions and fixes

  • Source-reported product
  • Source-reported product
  • Source-reported product — Reported version range cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
  • Source-reported product — Reported version range cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*
  • go — Fixed in 1.25.8-r0
  • go — Fixed in 1.25.8-r0
  • os — Fixed in 1.25.8, 1.26.1

Source evidence