Time-of-check Time-of-use (TOCTOU) Race Condition Affecting std/internal/syscall/unix package, versions <1.25.9>=1.26.0-0 <1.26.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDINTERNALSYSCALLUNIX-16086164
  • published16 Apr 2026
  • disclosed7 Apr 2026
  • creditUuganbayar Lkhamsuren

Introduced: 7 Apr 2026

CVE-2026-32282  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade std/internal/syscall/unix to version 1.25.9, 1.26.2 or higher.

Overview

std/internal/syscall/unix is a Go standard library package std/internal/syscall/unix

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition.

Go Vulnerability Report:
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.

CVSS Base Scores

version 4.0
version 3.1