CVE-2026-32282

MEDIUM

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

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 6.4
EPSS 0.0001
EPSS Percentile 0.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-59
Status published
Products (3)
Go standard library/internal/syscall/unix < 1.25.9
Go standard library/internal/syscall/unix 1.26.0-0 - 1.26.2
golang/go < 1.25.9
Published Apr 08, 2026
Tracked Since Apr 08, 2026