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).
Published: 2026-10-08
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Directory Traversal
Action: Update Go
AI Analysis

Impact

The vulnerability is a path traversal flaw (CWE‑59) and an improper use of root path (CWE‑1386) that occurs when the Go runtime's Root.Mkdir or Root.MkdirAll functions are called on Windows with a path whose last component is a junction pointing to an empty target. Instead of limiting creation to the intended root directory, the operation creates a directory at the junction target, allowing a program to create files or directories outside the protected area.

Affected Systems

Affected software includes the Go standard library packages internal/syscall/windows and os when executing on Windows. The bug is exercised through the exported Root.Mkdir and Root.MkdirAll APIs. The CVE record does not specify any version constraints, so any Go build that contains the current implementation on Windows may be impacted.

Risk and Exploitability

The CVSS score of 9.8 indicates high severity, and the EPSS score of less than 1 % suggests very low exploitation probability. The vulnerability is not listed in CISA's KEV catalog. Exploitation requires the attacker to supply a path that terminates in a junction, and the function will create a directory at the junction’s target even if that target lies outside the specified root. The risk level depends on whether such calls are present in the application.

Generated by OpenCVE AI on October 9, 2026 at 17:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Go runtime to the latest stable version that includes the fix for the junction traversal issue.
  • Review all uses of os.Mkdir and os.MkdirAll in your codebase and ensure that paths passed to these functions do not end in a junction; sanitize or validate paths before invoking these APIs.
  • Configure your deployment environment to disallow the creation of Windows junctions within the application’s working directories, or enforce filesystem containment controls to limit the effect of potential directory traversal.

Generated by OpenCVE AI on October 9, 2026 at 17:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1386
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Fri, 09 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Fri, 09 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-59
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Low


Fri, 09 Oct 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library internal/syscall/windows
Go Standard Library os
Vendors & Products Go Standard Library
Go Standard Library internal/syscall/windows
Go Standard Library os

Fri, 09 Oct 2026 01:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Thu, 08 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
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).
Title Root.Mkdir(All) can follow junctions out of the root on Windows in os
References

Subscriptions

Go Standard Library Internal/syscall/windows Os
cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-10-09T15:36:01.712Z

Reserved: 2026-06-23T15:10:49.353Z

Link: CVE-2026-56857

cve-icon Vulnrichment

Updated: 2026-10-09T15:35:52.818Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-08T23:17:01.487

Modified: 2026-10-09T16:35:35.900

Link: CVE-2026-56857

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-08T22:53:58Z

Links: CVE-2026-56857 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T17:45:11Z

Weaknesses
  • CWE-1386

    Insecure Operation on Windows Junction / Mount Point

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')