Root escape via symlink plus trailing slash in os
Historical advisory saved 14 Nov 2026 13:57:00 UTC. The publisher may have updated it since then. Latest advisory.
osv · GO-2026-4970
PublishedOn 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.
- Source published
- 7 Jul 2026 21:34:47 UTC
- Source modified
- 14 Nov 2026 13:12:14 UTC
- Saved here
- 14 Nov 2026 13:57:00 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.