CVE-2026-32282

GO-2026-4864 · published 7 Apr 2026 · updated 14 Nov 2026

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

6.4MediumCVSS 6.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.25.9, 1.26.2 and stdlib 1.26.2.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.25.9, >=1.26.0-0 <1.26.21.25.9, 1.26.2
go: stdlib>=1.26.0-0 <1.26.21.26.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-32282 severity on Zeptric[![CVE-2026-32282](https://zeptric.io/badge/cve/CVE-2026-32282.svg)](https://zeptric.io/cve/CVE-2026-32282)