GitHub Advisoryadvisory · crates.io
GHSA-hpfw-mqm3-33jh uutils coreutils has a Link Following issue
MEDIUM
Official page ↗
- Aliases
- CVE-2026-35359
- 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-59
- Reviewed
- 2026-04-30
Affected packages
• crates.io coreutils: <= 0.8.0 (no fix yet)
Description
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability in the cp utility of uutils coreutils allows an attacker to bypass no-dereference intent. The utility checks if a source path is a symbolic link using path-based metadata but subsequently opens it without the O_NOFOLLOW flag. An attacker with concurrent write access can swap a regular file for a symbolic link during this window, causing a privileged cp process to copy the contents of arbitrary sensitive files into a destination controlled by the attacker.
Related
Alias · CVE (1)
- CVE-2026-35359 A Time-of-Check to Time-of-Use (TOCTOU) vulnerability in the cp utility of uutils coreutils allows an attacker to bypass no-dereference… vulnerability
Weakness · CWE (1)
- CWE-59 Improper Link Resolution Before File Access weakness