Description
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 AT_SYMLINK_NOFOLLOW 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.
Affected products
golang: go
References4
- pkg.go.dev/vuln/GO-2026-4864 Vendor Advisory
- go.dev/cl/763761 Patch
- go.dev/issue/78293 Issue Tracking
- groups.google.com/g/golang-announce/c/0uYbvbPZRWU Mailing ListRelease Notes
Metrics
- CVSS 3.1
-
6.4
MEDIUM
Score source: NVD
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 23 · as of 12 November 2026
- CWE
- CWE-59
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.