CVE-2026-39822

Aliases:GO-2026-4970BIT-golang-2026-39822
PUBLISHED
Published: 08 Jul 2026, 15:46
Last modified:08 Jul 2026, 19:39

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.8 HIGH
v3.1 (cve.org)
EPSS Score
No data
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

08 Jul 2026, 15:46
Published
Vulnerability first disclosed
08 Jul 2026, 19:39
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Techniques & Countermeasures

  • CWE-61UNIX Symbolic Link (Symlink) Following

    The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

Affected Systems

  • go standard libraryos

    < 1.25.12 | ≥ 1.26.0-0, < 1.26.5 | ≥ 1.27.0-0, < 1.27.0-rc.2

  • Gostdlib

    ≥ 1.27.0-0, < 1.27.0-rc.2

References (4)