CVE-2026-27139

Low

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.

SeverityLow
CVSS2.5
Exploit probability—
ProductGo
PublishedMar 6, 2026
First seenMar 6, 2026
Weakness typeCWE-363CWE-363

How to fix

Update
  • golang go1.25.8 or later
  • stdlib1.25.8, 1.26.1 or later

Affected products

ProductAffected versionsFixed in
golang gov < 1.25.8, 1.26.01.25.8
stdlibGov < 1.25.8, 1.26.0-0 ≤ v < 1.26.11.25.8, 1.26.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.