VulnWatch by ve1ve2
high 7.8 EPSS 0.23%

GO-2026-4970: Root escape via symlink plus trailing slash in os

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
google stdlib

https://osv.dev/vulnerability/GO-2026-4970 ↗

osvgofix-available

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. Affected: Go:stdlib Fixed in: 1.25.12, 1.26.5, 1.27.0-rc.2 References: https://go.dev/issue/79005 https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc https://go.dev/cl/797880

Linked vulnerabilities (1)

CVE-2026-39822 high 7.8 EPSS 0.23% (p14) NVDCVE.org
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Root escape via symlink plus trailing slash in os

CWE: CWE-61NVD: Analyzed