CVE-2026-56857

Root.Mkdir(All) can follow junctions out of the root on Windows in os

State
Published
Severity
9.8 Critical
Published
Oct 8, 2026
Updated
Oct 9, 2026
Reserved
Jun 23, 2026

Read the record on cve.org

Description

On Windows, when the target of Root.Mkdir or Root.MkdirAll is a junction pointing to an empty location, the operation can create a directory at the junction target even when that target is located outside the root. This only applies to operations where the last path component is a junction (path/to/junction, but not path/junction/target).

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-1386 Insecure Operation on Windows Junction / Mount Point

Affected Products

ProductVersions
osGo standard library
  • before 1.26.9Affected
  • 1.27.0-0 to before 1.27.2Affected
internal/syscall/windowsGo standard library
  • before 1.26.9Affected
  • 1.27.0-0 to before 1.27.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.