# GO-2026-6604: Root.Mkdir(All) can follow junctions out of the root on Windows in os

- Database: Go
- Also known as: BIT-GOLANG-2026-56857
- Published: 2026-10-08
- Modified: 2026-10-16

## Tracked as

- [CVE-2026-56857](https://cve.now/CVE-2026-56857.md): Root.Mkdir(All) can follow junctions out of the root on Windows in os

## Affected versions

- stdlib (Go): fixed in 1.26.9; from 1.27.0-0, fixed in 1.27.2

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

## References

- https://go.dev/cl/847305
- https://go.dev/issue/81739
- https://groups.google.com/g/golang-announce/c/U2fTuyDJznI

Page: https://cve.now/GO-2026-6604

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
