CVE-2026-56857: CWE-1386: Insecure Operation on Windows Junction / Mount Point in Go standard library os
Description
CVE-2026-56857 is a vulnerability in the Go standard library's os package affecting Windows systems. It involves insecure operations on Windows junctions or mount points during directory creation. Specifically, when Root.Mkdir or Root.MkdirAll targets a junction pointing to an empty location, a directory can be created at the junction target even if it lies outside the intended root directory. This issue only occurs when the last path component is a junction, not for nested paths beyond the junction. The vulnerability affects Go versions from 0 up to but excluding 1.26.9, and from 1.27.0 up to but excluding 1.27.2.
Affected software
Go standard library
os
Go standard library
internal/syscall/windows
pkg:golang/internal/syscall/windowsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
On Windows, the Go standard library's os package has a vulnerability (CVE-2026-56857) related to insecure handling of junctions or mount points during directory creation operations (Root.Mkdir or Root.MkdirAll). When the target path's last component is a junction pointing to an empty location, the operation can create directories outside the intended root directory. This behavior violates expected path confinement and may lead to unauthorized directory creation outside the root. The issue affects versions >=0 <1.26.9 and >=1.27.0 <1.27.2 of the Go standard library os package.
Potential Impact
The vulnerability allows directory creation outside the intended root directory when the target is a junction pointing to an empty location. This could lead to unauthorized filesystem modifications outside of expected boundaries, potentially impacting application security or integrity. No known exploits are reported in the wild. The impact is limited to Windows platforms and specific Go versions.
Mitigation Recommendations
No explicit patch links or vendor advisory details are provided. Patch status is not yet confirmed — check the official Go project advisory or release notes for current remediation guidance. Until a fix is confirmed, avoid using Root.Mkdir or Root.MkdirAll on paths where the last component is a junction pointing to an empty location on Windows.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-06-23T15:10:49.353Z
- State
- PUBLISHED
Threat ID: 6ac821632cdf04f6564170d6
Added to database: 10/08/2026, 23:04:03 UTC
Last enriched: 10/08/2026, 23:19:45 UTC
Last updated: 10/08/2026, 23:19:45 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.