Skip to main content

Go standard library CVE-2026-39822

| EUVDEUVD-2026-42316 HIGH
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-07-08 Go GHSA-xcgv-8mv7-v8c7
7.8
CVSS 3.1 · Vendor: Go
Share

Severity by source

Vendor (Go) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.8 HIGH

Local escape requiring the attacker to place a symlink inside the root (PR:L, AV:L, AC:L); following it outside enables reading and overwriting arbitrary reachable files, so C/I/A:H with unchanged scope.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
7.7 HIGH
AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Red Hat
7.8 HIGH
qualitative

Primary rating from Vendor (Go).

CVSS VectorVendor: Go

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Generated
Jul 08, 2026 - 20:39 vuln.today
CVSS changed
Jul 08, 2026 - 20:22 NVD
7.8 (HIGH)
Patch available
Jul 08, 2026 - 18:02 EUVD
CVE Published
Jul 08, 2026 - 15:46 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

AnalysisAI

Sandbox escape in the Go standard library's os.Root API (os package) on Unix systems allows filesystem operations meant to be confined to a directory to reach files outside it. When a path's final component is a symbolic link and the path ends in a trailing slash (e.g. root.Open("symlink/")), os.Root improperly dereferences that symlink to a location outside the root, defeating the traversal protection the API is designed to enforce. Affects Go before 1.25.12, 1.26.5, and 1.27.0-rc.2; no public exploit is identified at time of analysis and it is not in CISA KEV.

Technical ContextAI

os.Root is a Go standard-library sandboxing primitive in the os package that confines filesystem operations to a directory subtree and is specifically intended to resist path-traversal and symlink attacks by validating each path component so symlinks cannot escape the root. This is a CWE-61 (UNIX symbolic link following) failure in that component-resolution logic: on Unix, when the final path component is a symlink and the caller supplies a trailing slash, the trailing slash causes the resolver to follow the final symlink outside the root instead of treating it as confined. Per the supplied CPE (cpe:2.3:a:go_standard_library:os), the vulnerable component is the os package itself, so any application built with an affected Go toolchain that relies on os.Root as a security boundary inherits the weakness.

RemediationAI

Vendor-released patch: upgrade the Go toolchain to 1.25.12, 1.26.5, or 1.27.0-rc.2 (or later) and rebuild affected applications, since the fix ships in the standard library (fix commit https://go.dev/cl/797880, tracking issue https://go.dev/issue/79005, advisory https://pkg.go.dev/vuln/GO-2026-4970). Because the flaw is compiled into the binary, you must redeploy rebuilt binaries - patching only the host Go install does not fix already-built services. If immediate recompilation is not possible, a targeted workaround is to normalize and reject caller-supplied paths ending in a trailing slash before passing them to os.Root operations, and add an explicit lstat/symlink check on the final component rather than relying on os.Root as the sole sandbox; the trade-off is added path-handling code and possible breakage of legitimate directory-style ('dir/') paths. Additional advisories: oss-security https://seclists.org/oss-sec/2026/q3/102 and https://vuldb.com/vuln/376920.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Development Tools 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed

Share

CVE-2026-39822 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy