Description
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the install utility of uutils coreutils when using the -D flag. The command creates parent directories and subsequently performs a second path resolution to create the target file, neither of which is anchored to a directory file descriptor. An attacker with concurrent write access can replace a path component with a symbolic link between these operations, redirecting the privileged write to an arbitrary file system location.
Problem types
CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition
Product status
Any version before 0.7.0
Credits
Zellic
References
github.com/uutils/coreutils/pull/10140
github.com/uutils/coreutils/releases/tag/0.7.0