CVE-2026-32282 TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix

Medium 6.4 Published Updated

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.

PackageAffectedFixed in
golang BitnamiAll versions1.25.9, 1.26.2
stdlib GoAll versions1.25.9, 1.26.2
Linux distribution packages (8)
yggdrasil-worker-package-manager AlmaLinux:10All versions0.2.3-7.el10_2
yggdrasil-worker-package-manager Red Hat:enterprise_linux:10.2All versions0:0.2.3-7.el10_2
yggdrasil-worker-package-manager-debuginfo Red Hat:enterprise_linux:10.2All versions0:0.2.3-7.el10_2
yggdrasil-worker-package-manager-debugsource Red Hat:enterprise_linux:10.2All versions0:0.2.3-7.el10_2
yggdrasil-worker-package-manager Red Hat:enterprise_linux_eus:10.0All versions0:0.2.3-6.el10_0
yggdrasil-worker-package-manager-debuginfo Red Hat:enterprise_linux_eus:10.0All versions0:0.2.3-6.el10_0
yggdrasil-worker-package-manager-debugsource Red Hat:enterprise_linux_eus:10.0All versions0:0.2.3-6.el10_0
yggdrasil-worker-package-manager Rocky Linux:10All versions0: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.

All Golang Go vulnerabilities

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.

Is CVE-2026-32282 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free