CVE Catalog

CVE-2026-39822

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.18%

8th percentile - higher than 8% of all known CVEs

Summary

On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when it points outside the root.

Risk Assessment

The risk involves bypassing filesystem access restrictions, potentially leading to reading or writing files outside the intended root directory, which could expose sensitive data or enable privilege escalation.

Recommendation

It is recommended to immediately update to a Go version that includes the fix for CVE-2026-39822, and avoid using paths ending with a slash when opening files via os.Root until the patch is applied.

Other vulnerabilities in Go

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS