Root.Mkdir and Root.MkdirAll can escape their root through Windows junctions

CVE-2026-56857 affects the Go standard library on Windows. Under a specific filesystem condition, os.Root.Mkdir or os.Root.MkdirAll can follow a junction used as the final path component and create a directory at the junction target even when that target is outside the intended root. The issue was reported by Daniele Ballarini and fixed in Go 1.26.9 and Go 1.27.2, released on October 8, 2026. The supplied CVE record assigns a CVSS 3.1 score of 9.8 Critical, while CISA enrichment records exploitation as none and automatable as yes; that enrichment is not evidence that exploitation has occurred in the wild. [4] [1] [2]
Quick facts
- Affected platform
- Windows only. The affected components are the Go standard-library os package and internal/syscall/windows. [4] [3]
- Affected releases
- Go versions before 1.26.9, and versions from 1.27.0-0 up to, but not including, 1.27.2 (including stable 1.27.0 and 1.27.1), are listed as affected. [4] [3]
- Required condition
- The final path component must be a junction pointing to an empty location; the described behavior does not apply when the junction is an intermediate component such as path/junction/target. [1] [4]
- Impact
- A directory can be created outside the root boundary, weakening the filesystem confinement that callers may expect from Root operations. [1] [4]
- Classification
- The issue is classified as CWE-1386, Insecure Operation on Windows Junction / Mount Point. [4]
What happened
Go's os.Root APIs are intended to perform filesystem operations relative to a designated root. On Windows, however, Root.Mkdir and Root.MkdirAll could resolve a final-component junction and create a directory at its destination, even if that destination was outside the root. The Go issue tracker states that the corrected behavior avoids resolving junctions for these operations. [1] [2]
Impact and attack prerequisites
The principal security consequence is a root-confinement escape for directory creation. Exploitation requires a Windows application using the relevant Root APIs, a path whose last component is a junction, and a junction target that is empty. The CVE record's network-based CVSS vector describes worst-case potential impact, not a demonstrated exploit path for every application. The record does not establish that arbitrary code execution or exploitation in the wild has occurred. [4] [1]
Affected and fixed versions
The official Go vulnerability entry lists the os and internal/syscall/windows components as affected before Go 1.26.9 and from Go 1.27.0-0 before Go 1.27.2. Go announced both fixed releases on October 8, 2026. Applications built with an affected toolchain should be rebuilt after updating, particularly when they use os.Root or related filesystem-confinement functionality on Windows. [3] [2]
Defensive next steps
Upgrade the Go toolchain to Go 1.26.9 or Go 1.27.2, then rebuild and redeploy affected Windows binaries. Review code and tests that use os.Root, Root.Mkdir, or Root.MkdirAll, and identify whether untrusted or attacker-influenced filesystem paths can contain junctions. As a general operational consideration, not a vendor-provided workaround or tested fix, monitor unexpected directory creation outside intended application roots and restrict the ability of untrusted users or processes to create filesystem reparse points. [2] [1] [4]
Disclosure and research context
The Go project records the issue as a security, release-blocking defect opened on September 24, 2026. Daniele Ballarini is credited with reporting it. The public issue and Go security announcement describe the behavior and correction, but the reviewed sources do not provide a public exploit demonstration or a confirmed exploitation report. [1] [2]
Public discussion
No relevant X post with retrievable content was found in this research pass. This does not establish that no discussion exists.
Questions and answers
Am I affected?
You may be affected if your application runs on Windows, was built with Go before 1.26.9 or with a Go 1.27 version before 1.27.2, and uses the affected Root filesystem operations. Applications that do not use these APIs or do not run on Windows are outside the listed affected scope. [3] [4]
What should I do now?
Update to Go 1.26.9 or Go 1.27.2, rebuild Windows applications, and deploy the rebuilt artifacts. Prioritize services that process attacker-controlled paths or operate in directories where junctions may be created. [2] [1]
Is a fix available?
Yes. Go 1.26.9 and Go 1.27.2 contain the fix. The Go project describes the change as preventing Root.Mkdir and Root.MkdirAll from resolving the relevant junctions. [2] [1]
What is known about exploitation?
The reviewed sources establish the vulnerability and its fix but do not report confirmed exploitation in the wild or provide a public proof of concept. CISA's supplied SSVC enrichment records exploitation as none at the time of enrichment; this should be treated as current assessment data, not proof that exploitation has never occurred. [4]
Does the CVSS 9.8 score mean every Go Windows application is critically exposed?
No. The score represents the assessed severity under the CVSS assumptions. Actual exposure depends on the operating system, Go version, use of the affected APIs, filesystem permissions, and whether an attacker can influence the relevant junction and path conditions. [4] [1]
What remains uncertain
- No relevant x.com or twitter.com post with retrievable content, exact status permalink, and visible author was found.
- The reviewed sources do not provide a public exploit payload, confirmed exploitation report, or application-specific exposure analysis.
- The supplied CVE record and Go advisories describe affected version ranges, but organizations must assess statically linked binaries and deployment inventories themselves.
Research sources
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).
Severity (CVSS)
| Base score | 9.8 |
|---|---|
| Severity | Critical |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Provided by | CISA-ADP |
Weaknesses
- — CWE-1386: Insecure Operation on Windows Junction / Mount Point
- CWE-1386 — CWE-1386 Insecure Operation on Windows Junction / Mount Point
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | os | 0 to <1.26.9 [affected]; 1.27.0-0 to <1.27.2 [affected] |
| Go standard library | internal/syscall/windows | 0 to <1.26.9 [affected]; 1.27.0-0 to <1.27.2 [affected] |
References
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 10 Oct 2026 19:47 UTC.