CVE-2026-39822: Go standard library os · UNIX Symbolic Link (Symlink) Following
Affects Go standard library osSource CVE Database V5
Not known to be exploited · CVSS 7.8 High · fixed in 1.27.0-rc.2 : patch Go standard library os soon.
Data as of 21 Nov 2026, 17:35 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 14% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.27.0-rc.2, 1.26.5, 1.25.12
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Upgrade Go standard library os to 1.27.0-rc.2, 1.26.5 or 1.25.12.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Go standard libraryos | Affected
| Fixed in
|
| Go standard libraryos | Affected
| Fixed in
|
| Go standard libraryos | Affected
| Fixed in
|
Goospkg:golang/osOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should carefully validate and sanitize paths and avoid relying solely on os.Root for security boundaries involving symbolic links.
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.