7.8Hoch

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

Go standard library os Veröffentlicht: (vor 4 Monaten)

Beschreibung

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.

Schwachstellentyp (CWE): CWE-61

Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.

Betroffene Produkte und Versionen

HerstellerProduktVersionen
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

Referenzen und Patches

CPE-Treffer (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:*:*:*:*:*:*