CVE-2026-39822

Root escape via symlink plus trailing slash in os

State
Published
Severity
7.8 High
Published
Jul 8, 2026
Updated
Jul 8, 2026
Reserved
Apr 7, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-61 UNIX Symbolic Link (Symlink) Following

Affected Products

ProductVersions
osGo standard library
  • before 1.25.12Affected
  • 1.26.0-0 to before 1.26.5Affected
  • 1.27.0-0 to before 1.27.0-rc.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.