Patchfirst
CVE-2026-56857 Critical · 9.8 EPSS 0.6%

On Windows, when the target of Root.Mkdir or Root.MkdirAll is a junction pointing to an empty location, the operation…

Go standard library · os

Summary

On Windows, the os package's Root.Mkdir and Root.MkdirAll functions in the Go standard library can mishandle a junction whose target is an empty location: when the last path component is a junction, the operation may create a directory at the junction's target even though that target lies outside the root. An attacker who can place or control such a junction within the root can cause directories to be created outside it, with the flaw triggered simply by calling these functions on the affected path, not through a particular configuration or user interaction.

Official description · NVD

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

Breakdown
18.6 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 8 Oct 2026. No public exploit code or confirmed exploitation is recorded.

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: stdlib.

GostdlibGO-2026-6604

Upgrade to 1.27.2 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2026-78663).

Set the version to Go 1.27.2 or later in your Go toolchain.

The first fix for CVE-2026-56857.

Affected versions, by release line

If you runUpgrade to
1.27.0-0 up to 1.27.21.27.2
All versions before 1.26.91.26.9

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 12 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close