# CVE-2026-56857: Root.Mkdir(All) can follow junctions out of the root on Windows in os

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-10-08T22:31:09.000Z
- Modified: 2026-10-16T09:55:42.275Z
- Also known as: GO-2026-6604, BIT-GOLANG-2026-56857
- Weaknesses: CWE-1386
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Go

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

(As written by CVE List.)

## Affected

- os: before 1.26.9; from 1.27.0-0 before 1.27.2
- internal/syscall/windows: before 1.26.9; from 1.27.0-0 before 1.27.2
- stdlib (Go): before 1.26.9; from 1.27.0-0 before 1.27.2
- golang (Bitnami): before 1.26.9; from 1.27.0-0 before 1.27.2

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://go.dev/cl/847305> (fix, web)
- <https://go.dev/issue/81739> (report, web)
- <https://groups.google.com/g/golang-announce/c/U2fTuyDJznI> (web)
- <https://pkg.go.dev/vuln/GO-2026-6604> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56857> (web)

## Sources

- CVE List: [CVE-2026-56857](https://www.cve.org/CVERecord?id=CVE-2026-56857), CVE Terms of Use, modified 2026-10-09
- Go Vulnerability Database: [GO-2026-6604](https://pkg.go.dev/vuln/GO-2026-6604), CC-BY-4.0, modified 2026-10-16
- NVD: [CVE-2026-56857](https://nvd.nist.gov/vuln/detail/CVE-2026-56857), Public domain, modified 2026-10-09
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-56857](https://osv.dev/vulnerability/BIT-GOLANG-2026-56857), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-56857 · Whole record: https://cve.day/CVE-2026-56857.json · Rebuilt by cve.day 2026-11-25T22:59:43.258Z
