uu_mv is vulnerable to Race Condition (TOCTOU)
47
Medium Risk
The mv utility preserves extended attributes during cross-device moves using repeated path-based syscalls that re-resolve the source and destination on each call. Because the reads and writes are not anchored to a stable file descriptor, a local user who can write to the directory can swap files between calls. This lets the destination end up with an inconsistent mix of security-relevant xattrs such as SELinux labels or file capabilities. The fix performs xattr preservation against pinned file descriptors so the operation is inode-stable.
You are affected if you are using a version that falls within the vulnerable range and you move files carrying security extended attributes across filesystem boundaries in a directory that untrusted local users can write to.
uu_mv is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.8.0.
Upgrade the uu_mv library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant