GO-2026-6604

Source
https://pkg.go.dev/vuln/GO-2026-6604
Import Source
https://vuln.go.dev/ID/GO-2026-6604.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-6604
Aliases
  • CVE-2026-56857
Published
2026-10-08T22:31:09Z
Modified
2026-10-08T23:00:13Z
Summary
Root.Mkdir(All) can follow junctions out of the root on Windows in os
Details

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

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-6604"
}
References
Credits
    • Daniele Ballarini

Affected packages

Go / stdlib

Package

Name
stdlib
View open source insights on deps.dev
Purl
pkg:golang/stdlib

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.26.9
Introduced
1.27.0-0
Fixed
1.27.2

Ecosystem specific

{
    "imports": [
        {
            "goos": [
                "windows"
            ],
            "path": "os",
            "symbols": [
                "Root.Chmod",
                "Root.Chown",
                "Root.Chtimes",
                "Root.Lchown",
                "Root.Link",
                "Root.Mkdir",
                "Root.MkdirAll",
                "Root.Remove",
                "Root.RemoveAll",
                "Root.Rename",
                "Root.Symlink",
                "doInRoot",
                "rootMkdirAll"
            ]
        },
        {
            "goos": [
                "windows"
            ],
            "path": "internal/syscall/windows",
            "symbols": [
                "Mkdirat"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-6604.json"