CVE-2026-27139 json
FileInfo can escape from a Root in os
published 2026-03-06 8 mo ago modified 2026-09-08 2 mo ago also BIT-golang-2026-27139 , EUVD-2026-10087 , GO-2026-4602
- cvss
- 2.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami golang 1.25.8, 1.26.1
- go stdlib 1.25.8, 1.26.1
- Go standard library os 1.25.8, 1.26.1
- golang-1.26 Debian 14 1.26.1-1
debian advisories DEBIAN-CVE-2026-27139
- golang1.25 hummingbird 1 1.25.9-1.hum1
- golang1.25-bin hummingbird 1 1.25.9-1.hum1
- golang1.25-src hummingbird 1 1.25.9-1.hum1
- golang1.25-misc hummingbird 1 1.25.9-1.hum1
- golang1.25-tests hummingbird 1 1.25.9-1.hum1
- golang1.25-shared hummingbird 1 1.25.9-1.hum1
- golang1.26 hummingbird 1 1.26.2-1.hum1
- golang1.26-bin hummingbird 1 1.26.2-1.hum1
red hat advisories RHSA-2026:7385RHSA-2026:7291
- go1.25-openssl SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Development Tools 15 SP7 1.25.12-150600.13.21.1
- go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.25.12-150000.1.27.1
- go1.25 SLES for SAP applications 16.0, SLES 16.0 1.25.12-160000.1.1
- go1.25-openssl SLES for SAP applications 16.0, SLES 16.0 1.25.12-160000.1.1
- go1.25 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 1.25.12-150000.1.44.1
- go1.25 SLES for SAP applications 16.0, SLES 16.0 1.25.8-160000.1.1
- go1.26-openssl SLES for SAP applications 16.0, SLES 16.0 1.26.1-160000.1.1
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260317T205859-150000.1.152.1
suse advisories SUSE-SU-2026:3151-1SUSE-SU-2026:3046-1SUSE-SU-2026:22643-1SUSE-SU-2026:22638-1SUSE-SU-2026:2817-1SUSE-SU-2026:21200-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- go1.25 openSUSE Leap 16.0 1.25.12-160000.1.1
- go1.25-openssl openSUSE Leap 16.0 1.25.12-160000.1.1
- go1.25 openSUSE Leap 16.0 1.25.8-160000.1.1
- go1.26-openssl openSUSE Leap 16.0 1.26.1-160000.1.1
- go1.26 openSUSE Leap 16.0 1.26.1-160000.1.1
- go1.25 openSUSE Tumbleweed 1.25.8-1.1
- go1.26 openSUSE Tumbleweed 1.26.1-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:21324-1openSUSE-SU-2026:21319-1openSUSE-SU-2026:20496-1openSUSE-SU-2026:20537-1openSUSE-SU-2026:20342-1
- go Alpine 3.24, Alpine 3.23 1.25.8-r0
alpine advisories ALPINE-CVE-2026-27139
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- go.dev/cl/749480 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-27139 updated cvss 2.5
os: FileInfo can escape from a Root in golang os module
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/openshift-golang-builder Red Hat OpenShift Service Mesh 3 openshift-service-mesh/openshift-golang-builder Red Hat Enterprise Linux 8 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 9 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 10 golang Red Hat Enterprise Linux AI (RHEL AI) 3 golangaffected: workaround, no fix available “Fix deferred”
+2 more productsfewer
Red Hat OpenShift Container Platform 4 openshift-service-mesh/openshift-golang-builder Red Hat OpenShift Virtualization 4 openshift-service-mesh/openshift-golang-builder -
Red Hat Hardened Images golang1.25 1.25.9-1.hum1, golang1.26 1.26.2-1.hum1, golang1.25-bin 1.25.9-1.hum1, golang1.25-src 1.25.9-1.hum1, golang1.26-bin 1.26.2-1.hum1, golang1.26-src 1.26.2-1.hum1, +6 morefixed: vendor fix RHSA-2026:7385
-
Red Hat OpenShift AI 3.4 rhai/base-image-neuron-rhel9 1793042008fixed: vendor fix RHSA-2026:91248
-
Red Hat OpenShift AI 3.5 rhai/base-image-neuron-rhel9 1793042008fixed: vendor fix RHSA-2026:91249
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| CNA | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | golang | <1.25.8 >=1.26.0-0, <1.26.1 |
1.25.8 1.26.1 |
| go | stdlib | <1.25.8 >=1.26.0-0, <1.26.1 |
1.25.8 1.26.1 |
Affected products
- Go standard library os
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
go.dev
/cl/749480
mailing-list, discussion, patch
-
pkg.go.dev
/vuln/GO-2026-4602
vendor-advisory, advisory
-
groups.google.com
/g/golang-announce/c/EdhZqrQ98hk
release-notes, article, web
-
go.dev
/issue/77827
issue-tracking, report
-
nvd.nist.gov
/vuln/detail/CVE-2026-27139
web
Sources
- CVE List CVE-2026-27139
- NVD CVE-2026-27139
- OSV BIT-golang-2026-27139
- OSV GO-2026-4602
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.