CVE-2026-32282 TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix
A race condition in Go's Root.Chmod allows attackers to escape the root directory and escalate privileges by replacing a target with a symlink during execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-32282?
CVE-2026-32282 is a medium-severity vulnerability in Golang Go, published on 8 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-59
Which versions are affected by CVE-2026-32282?
2 open source packages ship an affected version, including golang and stdlib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang Bitnami | All versions | 1.25.9, 1.26.2 |
stdlib Go | All versions | 1.25.9, 1.26.2 |
Linux distribution packages (8)
yggdrasil-worker-package-manager AlmaLinux:10 | All versions | 0.2.3-7.el10_2 |
yggdrasil-worker-package-manager Red Hat:enterprise_linux:10.2 | All versions | 0:0.2.3-7.el10_2 |
yggdrasil-worker-package-manager-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 0:0.2.3-7.el10_2 |
yggdrasil-worker-package-manager-debugsource Red Hat:enterprise_linux:10.2 | All versions | 0:0.2.3-7.el10_2 |
yggdrasil-worker-package-manager Red Hat:enterprise_linux_eus:10.0 | All versions | 0:0.2.3-6.el10_0 |
yggdrasil-worker-package-manager-debuginfo Red Hat:enterprise_linux_eus:10.0 | All versions | 0:0.2.3-6.el10_0 |
yggdrasil-worker-package-manager-debugsource Red Hat:enterprise_linux_eus:10.0 | All versions | 0:0.2.3-6.el10_0 |
yggdrasil-worker-package-manager Rocky Linux:10 | All versions | 0:0.2.3-7.el10_2 |
Products include Golang Go.
How do I fix CVE-2026-32282?
Upgrade golang to a fixed version for your release line: 1.25.9 or 1.26.2.
Is CVE-2026-32282 being exploited?
There is no known exploitation of CVE-2026-32282 in the wild and no public exploit code.
Other vulnerabilities in Golang Go
- CVE-2020-0601 Microsoft Windows CryptoAPI Spoofing
- CVE-2026-27143 Missing bound checks can lead to memory corruption in safe Go in cmd/compile
- CVE-2024-24790 Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
- CVE-2023-39320 Arbitrary code execution via go.mod toolchain directive in cmd/go
- CVE-2023-24540 Improper handling of JavaScript whitespace in html/template
Sources
Also known as ALSA-2026:25999, AZL-98595, BELL-CVE-2026-32282, BIT-golang-2026-32282, CLEANSTART-2026-AJ10703, CLEANSTART-2026-BX69404 and 645 more.