{"id":"CVE-2026-56857","revision":"f3aa68a8f0dd457bbaa18ef853b94c68","records":[{"revision":"f3aa68a8f0dd457bbaa18ef853b94c68","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-56857","aliases":[],"title":"Root.Mkdir(All) can follow junctions out of the root on Windows in os","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).","state":0,"publishedAt":"2026-10-08T22:53:58.387+00:00","modifiedAt":"2026-10-09T15:36:01.712+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"os","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Go standard library\",\n                    \"product\": \"os\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"os\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.26.9\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.27.0-0\",\n                            \"lessThan\": \"1.27.2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"platforms\": [\n                        \"windows\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"Root.Mkdir\"\n                        },\n                        {\n                            \"name\": \"doInRoot\"\n                        },\n                        {\n                            \"name\": \"rootMkdirAll\"\n                        },\n                        {\n                            \"name\": \"Root.Chmod\"\n                        },\n                        {\n                            \"name\": \"Root.Chown\"\n                        },\n                        {\n                            \"name\": \"Root.Chtimes\"\n                        },\n                        {\n                            \"name\": \"Root.Lchown\"\n                        },\n                        {\n                            \"name\": \"Root.Link\"\n                        },\n                        {\n                            \"name\": \"Root.MkdirAll\"\n                        },\n                        {\n                            \"name\": \"Root.Remove\"\n                        },\n                        {\n                            \"name\": \"Root.RemoveAll\"\n                        },\n                        {\n                            \"name\": \"Root.Rename\"\n                        },\n                        {\n                            \"name\": \"Root.Symlink\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://pkg.go.dev","name":"internal/syscall/windows","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Go standard library\",\n                    \"product\": \"internal/syscall/windows\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"internal/syscall/windows\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.26.9\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.27.0-0\",\n                            \"lessThan\": \"1.27.2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"platforms\": [\n                        \"windows\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"Mkdirat\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://go.dev/cl/847305","https://go.dev/issue/81739","https://groups.google.com/g/golang-announce/c/U2fTuyDJznI","https://pkg.go.dev/vuln/GO-2026-6604"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-56857","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-56857","identifiers":["CVE-2026-56857"]},"retained":false,"historicalAffected":[]}],"coverage":[]}