CVE-2026-39822 Details
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.
A vulnerability exists in the Go programming language's standard library, specifically within the 'os' package, prior to version 1.25.12, between versions 1.26.0-0 and 1.26.5, and in the 1.27.0-0 releases prior to 1.27.0-rc.2'. On Unix systems, the 'Root' function improperly follows symbolic links that point outside of the root directory when the path ends with a trailing slash. This behavior allows paths to escape the intended root confinement. The issue arises because the 'openat' system call, used by 'Root', follows symlinks when the path ends in a slash, a detail that was not properly managed,
Users can update to Go versions 1.26.5 or 1.25.12, both of which include the necessary fix. Instructions for downloading these versions are available on the Go website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/797880 | [email protected] | Patch |
| https://go.dev/issue/79005 | [email protected] | Issue TrackingPatch |
| https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc | [email protected] | Mailing ListPatchVendor Advisory |
| https://pkg.go.dev/vuln/GO-2026-4970 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-61 | UNIX Symbolic Link (Symlink) Following | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| golang go | >= 1.24.0, < 1.25.12 >= 1.26.0, < 1.26.5 1.27 rc1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Sep 17, 2026 | Reanalysis | [email protected] |
| Jul 13, 2026 | Initial Analysis | [email protected] |
| Jul 8, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |