GitHub Advisoryadvisory · crates.io

GHSA-2m8x-mvfx-gwgj uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition

MEDIUM Published 2026-04-22 Modified 2026-04-30 Official page ↗
Aliases
CVE-2026-35357
Ecosystem
crates.io
Packages
coreutils
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-367
Reviewed
2026-04-30

Affected packages

• crates.io coreutils: <= 0.8.0 (no fix yet)

Description

The cp utility in uutils coreutils is vulnerable to an information disclosure race condition. Destination files are initially created with umask-derived permissions (e.g., 0644) before being restricted to their final mode (e.g., 0600) later in the process. A local attacker can race to open the file during this window; once obtained, the file descriptor remains valid and readable even after the permissions are tightened, exposing sensitive or private file contents.

Related

Alias · CVE (1)

  • CVE-2026-35357 The cp utility in uutils coreutils is vulnerable to an information disclosure race condition. vulnerability

Weakness · CWE (1)

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition weakness

References