MEDIUM4.7
GHSA-hpfw-mqm3-33jh
uutils coreutils has a Link Following issue
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/coreutils
Introduced in:
0No fixed version published yet for coreutils. Pin to a known-safe version or switch to an alternative.