Skip to main content

CVE-2026-56857: CWE-1386: Insecure Operation on Windows Junction / Mount Point in Go standard library os

0
Medium
VulnerabilityCVE-2026-56857cvecve-2026-56857cwe-1386
Published: 10/08/2026 (10/08/2026, 22:53:58 UTC)
Source: CVE Database V5
Vendor/Project: Go standard library
Product: 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

Affected versions
>=0 <1.26.9>=1.27.0-0 <1.27.2

Go standard library

internal/syscall/windows

Affected versions
>=0 <1.26.9>=1.27.0-0 <1.27.2
os
pkg:golang/os
Affected versions
>=0 <1.26.9>=1.27.0-0 <1.27.2
internal/syscall/windows
pkg:golang/internal/syscall/windows
Affected versions
>=0 <1.26.9>=1.27.0-0 <1.27.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 23:19:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses