7.8Alta

CVE-2026-39822Root escape via symlink plus trailing slash in os

Go standard library os Publicada: (hace 4 meses)

Descripción

On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.

Debilidad (CWE): CWE-61

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

FabricanteProductoVersiones
Go standard library os < 1.25.12, 1.26.0-0 – < 1.26.5, 1.27.0-0 – < 1.27.0-rc.2
golang go 1.24.0 – < 1.25.12

Referencias y parches

Coincidencias CPE (NVD) (3)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.24.0 < 1.25.12
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.26.0 < 1.26.5
  • cpe:2.3:a:golang:go:1.27:rc1:*:*:*:*:*:*