2.5low
FileInfo can escape from a Root in os
- Severity
- 2.5low CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.22% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2026-4602BIT-GOLANG-2026-27139
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| os | before 1.25.8, from 1.26.0-0 before 1.26.1 | CVE List |
| stdlib (Go) | before 1.25.8, from 1.26.0-0 before 1.26.1 | Go Vulnerability Database |
| golang go | before 1.25.8, 1.26.0 | NVD |
| golang (Bitnami) | before 1.25.8, from 1.26.0-0 before 1.26.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 2.5low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Bitnami Vulnerability Database | low rating |
Classification
What each source says
CVE List
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.
NVD (es)
En plataformas Unix, al listar el contenido de un directorio usando File.ReadDir o File.Readdir, el FileInfo devuelto podría hacer referencia a un archivo fuera de la Raíz en la que se abrió el Archivo. El impacto de este escape se limita a la lectura de metadatos proporcionados por lstat desde ubicaciones arbitrarias en el sistema de archivos sin permitir la lectura o escritura de archivos fuera de la raíz.
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 | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27139 changed 2026-11-23 | CVE Terms of Use |
| Go Vulnerability Database | GO-2026-4602 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-27139 changed 2026-11-23 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2026-27139 changed 2026-09-08 | Apache-2.0 |