Go standard library os
Root.Mkdir(All) can follow junctions out of the root on Windows in os
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).
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by CISA ADP · CWE-1386
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Go standard library os
- < 1.26.9
- >= 1.27.0-0, < 1.27.2
Fixed in 1.26.9, 1.27.2
Go standard library internal/syscall/windows
- < 1.26.9
- >= 1.27.0-0, < 1.27.2
Fixed in 1.26.9, 1.27.2
Mitigation
Upgrade os to 1.26.9 or 1.27.2 or later.
Upgrade internal/syscall/windows to 1.26.9 or 1.27.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.