Skip to main content
VulnerabilityPublished

CVE-2026-56857: Go standard library os · Insecure Operation on Windows Junction / Mount Point

Affects Go standard library osSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.8 Critical : upgrade to 1.27.2 or 1.26.9 as a priority.

Data as of 22 Nov 2026, 21:15 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 47% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.2, 1.26.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 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 22 Nov 2026.

What to do

Upgrade os and internal/syscall/windows to 1.27.2 or 1.26.9.

Affected software

ProductAffectedFixed in
Go standard libraryosAffected
  • >=1.27.0-0 <1.27.2
Fixed in
  • 1.27.2
Go standard libraryosAffected
  • <1.26.9
Fixed in
  • 1.26.9
Go standard libraryinternal/syscall/windowsAffected
  • >=1.27.0-0 <1.27.2
Fixed in
  • 1.27.2
Go standard libraryinternal/syscall/windowsAffected
  • <1.26.9
Fixed in
  • 1.26.9
Goospkg:golang/osOther threatsAffected
  • <1.26.9
  • >=1.27.0-0 <1.27.2
Fixed in
  • 1.26.9
  • 1.27.2
Gointernal/syscall/windowspkg:golang/internal/syscall/windowsOther threatsAffected
  • <1.26.9
  • >=1.27.0-0 <1.27.2
Fixed in
  • 1.26.9
  • 1.27.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, avoid using Root.Mkdir or Root.MkdirAll on untrusted or user-controlled paths that may include junctions, especially where the last path component is a junction pointing to an empty location.

Description

CVE-2026-56857 is a critical vulnerability in the Go standard library's os package affecting Windows systems. It involves insecure operations on Windows junctions or mount points during directory creation with Root.Mkdir or Root.MkdirAll. Specifically, when the last path component is a junction pointing to an empty location, these functions can create directories at the junction target even if it lies outside the intended root directory. This behavior can lead to unauthorized directory creation outside the expected path boundaries.

References

Community reviews

Loading reviews…