UNKNOWN Go
Root.Mkdir(All) can follow junctions out of the root on Windows in os
GO-2026-6604 · BIT-golang-2026-56857 · CVE-2026-56857
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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
Ready to move
Start Securing
Free, no credit card | First findings in minutes