{"id":"CVE-2026-32282","published":"2026-04-08T01:06:55Z","modified":"2026-04-13T18:20:56Z","title":"TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix","vendor":"Go standard library","product":"internal/syscall/unix","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00297,"percentile":0.2287,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/763761","tags":[]},{"url":"https://go.dev/issue/78293","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-4864","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":4.57},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"internal/syscall/unix","versions":["< 1.25.9",">= 1.26.0-0, < 1.26.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-13T17:47:42.666766Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.25.9",">=1.26.0-0, <1.26.2"],"patched":["1.25.9","1.26.2"],"from":["GO-2026-4864"],"provenance":"source"}],"summary":{"text":"The flaw is a time-of-check to time-of-use race in the Go standard library's os package, specifically in internal/syscall/unix, affecting Root.Chmod on Linux. Because the Linux fchmodat syscall ignores the AT_SYMLINK_NOFOLLOW flag that Root.Chmod relies on, an attacker who replaces the target with a symlink between the check and the operation can cause a chmod to act on a file outside the root, which requires local access and high-privilege conditions, the attacker must hold a privilege level that lets them swap the target path during the operation, and no user interaction is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:52Z"},"euvd":{"id":"EUVD-2026-20012","exploited":false,"provenance":"source"}}