uu_mv is vulnerable to Race Condition (TOCTOU)
66
Medium Risk
mv's cross filesystem fallback for directories removes the destination with fs::remove_dir_all and then recreates it with path based fs::create_dir_all/fs::copy calls. A local user who can write to the destination's parent directory can plant a symlink in the window between the removal and the recreate, causing the path based copy to follow it and write outside the intended tree while the source is deleted. The single file and symlink target fallbacks were hardened separately, but the directory fallback kept removing the destination and recreating it by path. The fix applies the same fail closed, non-following approach used for the other fallbacks.
You are affected if you are using a version that falls within the vulnerable range and you run a privileged cross filesystem mv of a directory into a destination whose parent directory an untrusted local user can write to.
uu_mv is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.