GO-2026-4864

Source
https://pkg.go.dev/vuln/GO-2026-4864
Import Source
https://vuln.go.dev/ID/GO-2026-4864.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-4864
Aliases
  • CVE-2026-32282
Published
2026-04-07T22:53:49Z
Modified
2026-04-08T01:15:15.140472Z
Summary
TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix
Details

On Linux, if the target of Root.Chmod is replaced with a symlink while the chmod operation is in progress, Chmod can operate on the target of the symlink, even when the target lies outside the root.

The Linux fchmodat syscall silently ignores the ATSYMLINKNOFOLLOW flag, which Root.Chmod uses to avoid symlink traversal. Root.Chmod checks its target before acting and returns an error if the target is a symlink lying outside the root, so the impact is limited to cases where the target is replaced with a symlink between the check and operation.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-4864"
}
References
Credits
    • Uuganbayar Lkhamsuren (https://github.com/uug4na)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.25.9
Introduced
1.26.0-0
Fixed
1.26.2

Ecosystem specific

{
    "imports": [
        {
            "path": "internal/syscall/unix",
            "symbols": [
                "Fchmodat"
            ],
            "goos": [
                "linux"
            ]
        }
    ]
}

Database specific

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