CVE-2026-39822

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductGo
PublishedJul 8, 2026
First seenJul 8, 2026
Weakness typeCWE-61CWE-61

How to fix

Update
  • golang go1.25.12, 1.26.5 or later
  • stdlib1.25.12, 1.26.5, 1.27.0-rc.2 or later

Affected products

ProductAffected versionsFixed in
golang go1.24.0 ≤ v < 1.25.12, 1.26.0 ≤ v < 1.26.5, 1.271.25.12, 1.26.5
stdlibGov < 1.25.12, 1.26.0-0 ≤ v < 1.26.5, 1.27.0-0 ≤ v < 1.27.0-rc.21.25.12, 1.26.5, 1.27.0-rc.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.