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.

Severity (CVSS)

Base score7.8
SeverityHigh
VersionCVSS 3.1
VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Provided byCISA-ADP

Weaknesses

  • — CWE-61: UNIX Symbolic Link (Symlink) Following
  • CWE-61 — CWE-61 UNIX Symbolic Link (Symlink) Following

Affected products

VendorProductVersions
Go standard libraryos0 to <1.25.12; 1.26.0-0 to <1.26.5; 1.27.0-0 to <1.27.0-rc.2

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 09 Jul 2026 07:08 UTC.