Root.Mkdir(All) can follow junctions out of the root on Windows in os
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).
CVE-2026-56857
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-56857
os
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
internal/syscall/windows
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"vendor": "Go standard library",
"product": "os",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.26.9",
"versionType": "semver"
},
{
"status": "affected",
"version": "1.27.0-0",
"lessThan": "1.27.2",
"versionType": "semver"
}
],
"platforms": [
"windows"
],
"packageName": "os",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "Root.Mkdir"
},
{
"name": "doInRoot"
},
{
"name": "rootMkdirAll"
},
{
"name": "Root.Chmod"
},
{
"name": "Root.Chown"
},
{
"name": "Root.Chtimes"
},
{
"name": "Root.Lchown"
},
{
"name": "Root.Link"
},
{
"name": "Root.MkdirAll"
},
{
"name": "Root.Remove"
},
{
"name": "Root.RemoveAll"
},
{
"name": "Root.Rename"
},
{
"name": "Root.Symlink"
}
]
},
{
"vendor": "Go standard library",
"product": "internal/syscall/windows",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.26.9",
"versionType": "semver"
},
{
"status": "affected",
"version": "1.27.0-0",
"lessThan": "1.27.2",
"versionType": "semver"
}
],
"platforms": [
"windows"
],
"packageName": "internal/syscall/windows",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "Mkdirat"
}
]
}
]- Related CVEs
- CVE-2026-56857
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #16330 · Revision 1
- Added to Heist Feed
- Publisher date