Skip to main content
VulnerabilityPublished

CVE-2026-39822: Go standard library os · UNIX Symbolic Link (Symlink) Following

Affects Go standard library osSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Go standard libraryosAffected
  • >=1.27.0-0 <1.27.0-rc.2
Fixed in
  • 1.27.0-rc.2
Go standard libraryosAffected
  • >=1.26.0-0 <1.26.5
Fixed in
  • 1.26.5
Go standard libraryosAffected
  • <1.25.12
Fixed in
  • 1.25.12
Goospkg:golang/osOther threatsAffected
  • <1.25.12
  • >=1.26.0-0 <1.26.5
  • >=1.27.0-0 <1.27.0-rc.2
Fixed in
  • 1.25.12
  • 1.26.5
  • 1.27.0-rc.2

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.

References

Community reviews

Loading reviews…