CVE-2026-27139
JSON

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 packageVersionsReported by
osbefore 1.25.8, from 1.26.0-0 before 1.26.1CVE List
stdlib (Go)before 1.25.8, from 1.26.0-0 before 1.26.1Go Vulnerability Database
golang gobefore 1.25.8, 1.26.0NVD
golang (Bitnami)before 1.25.8, from 1.26.0-0 before 1.26.1Bitnami Vulnerability Database

All scores

CISA-ADP2.5low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Bitnami Vulnerability Databaselow rating

Classification

CWE-22CWE-363

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-27139 changed 2026-11-23CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4602 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-27139 changed 2026-11-23Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2026-27139 changed 2026-09-08Apache-2.0