Go Vulnerability Database
GO-2026-6604
Root.Mkdir(All) can follow junctions out of the root on Windows in os
Details
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).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.26.9 (fixed in 1.26.9) From 1.27.0-0 before 1.27.2 (fixed in 1.27.2) |