CVE-2026-56857: Vulnerability in Go standard library Os

Critical. 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).

CWE-1386

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-1386
Published
8 Oct 2026
Last change
9 Oct 2026

Affected products

Affected versions and the first fixed release

  • Go standard library Os Before 1.26.9; From 1.27.0-0 before 1.27.2. Fixed in 1.26.9, 1.27.2
  • Go standard library internal/syscall/windows Before 1.26.9; From 1.27.0-0 before 1.27.2. Fixed in 1.26.9, 1.27.2

Advisories

Vendor and security advisories

Related