CVE-2026-39822
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Go standard library | os | 0 < 1.25.12 | affected |
| Go standard library | os | 1.26.0-0 < 1.26.5 | affected |
| Go standard library | os | 1.27.0-0 < 1.27.0-rc.2 | affected |
Weaknesses
- CWE-61: UNIX Symbolic Link (Symlink) Following
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: total
References
- https://go.dev/issue/79005
- https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc
- https://go.dev/cl/797880
- https://pkg.go.dev/vuln/GO-2026-4970
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.