Skip to content
Threat Brief

← All advisories

CVE-2026-27139

Low 2.5No known exploitationFix available

FileInfo can escape from a Root in os

Record last updated

CVSS score

2.5

Low on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 12% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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-22

Patching and mitigation

Patch status
Fix available (source: CVE record (Go))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
pkg.go.dev (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Go standard libraryosfrom 1.26.0-0 before 1.26.11.26.1CVE Program
Go standard libraryosall versions before 1.25.81.25.8CVE Program
golanggo1.26.0Not documentedNIST NVD
golanggoall versions before 1.25.81.25.8NIST NVD

Timeline

  1. Disclosure

    CVE record published by Go

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (Go)

    Source: CVE record (Go) (opens in a new tab)

Vendor guidance and references

CVE-2026-27139: FileInfo can escape from a Root in os · Threat Brief