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.
History

Wed, 08 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library os
Vendors & Products Go Standard Library
Go Standard Library os

Wed, 08 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title Root escape via symlink plus trailing slash in os
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-07-08T15:46:27.199Z

Reserved: 2026-04-07T18:13:03.527Z

Link: CVE-2026-39822

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-08T17:30:03Z