CVEvulnerability

CVE-2026-39822

7.8 HIGH Published 2026-07-08 Modified 2026-10-25 Official page ↗
Status
Analyzed
Published
2026-07-08
Last modified
2026-10-25
Assigner
[email protected]
CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-61

Description

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 configurations

• golang go (>= 1.24.0 < 1.25.12) • golang go (>= 1.26.0 < 1.26.5) • golang go 1.27

Related

Weakness · CWE (1)

  • CWE-61 UNIX Symbolic Link (Symlink) Following weakness

References