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

- Severity: Low 2.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-03-06T21:03:42.000Z
- Modified: 2026-11-23T21:17:02.990Z
- Also known as: GO-2026-4602, BIT-GOLANG-2026-27139
- Related: RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-22, CWE-363
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- os: before 1.25.8; from 1.26.0-0 before 1.26.1
- stdlib (Go): before 1.25.8; from 1.26.0-0 before 1.26.1
- golang go: before 1.25.8; 1.26.0
- golang (Bitnami): before 1.25.8; from 1.26.0-0 before 1.26.1

## Every score

- CISA-ADP: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk> (article, release-notes, web)
- <https://go.dev/issue/77827> (issue-tracking, report)
- <https://go.dev/cl/749480> (discussion, fix, mailing-list)
- <https://pkg.go.dev/vuln/GO-2026-4602> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27139> (web)

## Sources

- CVE List: [CVE-2026-27139](https://www.cve.org/CVERecord?id=CVE-2026-27139), CVE Terms of Use, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-4602](https://pkg.go.dev/vuln/GO-2026-4602), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-27139](https://nvd.nist.gov/vuln/detail/CVE-2026-27139), Public domain, modified 2026-11-23
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-27139](https://osv.dev/vulnerability/BIT-GOLANG-2026-27139), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-27139 · Whole record: https://cve.day/CVE-2026-27139.json · Rebuilt by cve.day 2026-11-25T22:59:15.443Z
