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 score | 7.8 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Provided by | CISA-ADP |
Weaknesses
- — CWE-61: UNIX Symbolic Link (Symlink) Following
- CWE-61 — CWE-61 UNIX Symbolic Link (Symlink) Following
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | os | 0 to <1.25.12; 1.26.0-0 to <1.26.5; 1.27.0-0 to <1.27.0-rc.2 |
References
Generated from the official CVE List on 09 Jul 2026 07:08 UTC.