CVE-2026-56857 PUBLISHED

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

Assigner: Go
Reserved: 23.06.2026 Published: 08.10.2026 Updated: 09.10.2026

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).

Product Status

Vendor Go standard library
Product os
Versions Default: unaffected
  • affected from 0 to 1.26.9 (excl.)
  • affected from 1.27.0-0 to 1.27.2 (excl.)
Vendor Go standard library
Product internal/syscall/windows
Versions Default: unaffected
  • affected from 0 to 1.26.9 (excl.)
  • affected from 1.27.0-0 to 1.27.2 (excl.)

Credits

  • Daniele Ballarini

References

Problem Types

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