CVEfocus › CVE database › CVE-2026-27139

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

CVSS 2.5 LowEPSS 0.1% (higher than 1% of CVEs)Published 2026-03-06Updated 2026-11-23Assigner: Go

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.

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
27Fix pending
9Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-1.26Fix pendingUBUNTU-CVE-2026-27139
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2026-27139
Ubuntu 26.04golang-1.25Under investigationUBUNTU-CVE-2026-27139
Ubuntu 26.04golang-1.26Under investigationUBUNTU-CVE-2026-27139
Ubuntu 25.10golang-1.24Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-27139
Ubuntu 25.10golang-1.25Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-27139
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2026-27139
Ubuntu 24.04golang-1.25Under investigationUBUNTU-CVE-2026-27139
Ubuntu 24.04golang-1.26Under investigationUBUNTU-CVE-2026-27139
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2026-27139
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2026-27139
Ubuntu 22.04golang-1.26Under investigationUBUNTU-CVE-2026-27139
Debian 14golang-1.26Fixed1.26.1-1DEBIAN-CVE-2026-27139
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2026-27139
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2026-27139
Red Hat Enterprise Linux 10go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 10golangFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 9golangFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 8go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 8golangFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-testsFix pending
Fix deferred
Alpine Linux 3.24goFixed1.25.8-r0ALPINE-CVE-2026-27139
Alpine Linux 3.23goFixed1.25.8-r0ALPINE-CVE-2026-27139
Go librarystdlibFixed1.26.1GO-2026-4602

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.