CVE-2026-27139FileInfo 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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-1.26 | Fix pending | UBUNTU-CVE-2026-27139 | |
| Ubuntu 26.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 26.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 26.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 25.10 | golang-1.24 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-27139 | |
| Ubuntu 25.10 | golang-1.25 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-27139 | |
| Ubuntu 24.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 24.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 24.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 22.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 22.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Ubuntu 22.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-27139 | |
| Debian 14 | golang-1.26 | Fixed | 1.26.1-1 | DEBIAN-CVE-2026-27139 |
| Debian 13 | golang-1.24 | Fix pending | DEBIAN-CVE-2026-27139 | |
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2026-27139 | |
| Red Hat Enterprise Linux 10 | go-toolset | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang-bin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang-misc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang-race | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang-src | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | golang-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | go-toolset | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang-bin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang-misc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang-race | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang-src | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | golang-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | go-toolset | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang-bin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang-misc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang-race | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang-src | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | golang-tests | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | go | Fixed | 1.25.8-r0 | ALPINE-CVE-2026-27139 |
| Alpine Linux 3.23 | go | Fixed | 1.25.8-r0 | ALPINE-CVE-2026-27139 |
| Go library | stdlib | Fixed | 1.26.1 | GO-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.
- Go standard library os: affected: before 1.25.8, 1.26.0-0 to before 1.26.1; fixed in
1.25.8,1.26.1
References
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://go.dev/issue/77827
- https://go.dev/cl/749480
- https://pkg.go.dev/vuln/GO-2026-4602
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.