7.8

CVE-2026-39822

Root escape via symlink plus trailing slash in os

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
GolangGo Version < 1.25.12
GolangGo Version >= 1.26.0 < 1.26.5
GolangGo Version1.27 Updaterc1
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.23% 0.142
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
CISA-ADP 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-61 UNIX Symbolic Link (Symlink) Following

The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

https://go.dev/issue/79005
Patch
Issue Tracking
https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc
Patch
Vendor Advisory
Mailing List
https://go.dev/cl/797880
Patch
https://pkg.go.dev/vuln/GO-2026-4970
Vendor Advisory