uu_rm is vulnerable to Race Condition (TOCTOU)
60
Medium Risk
rm -r checks each directory entry without following symlinks, then opens that entry with a call that does follow them and does not recheck the opened inode. A local user who can modify a directory being removed can replace a subdirectory with a symlink between those two steps. Recursive deletion then leaves the intended tree and removes files elsewhere, including when rm -r runs as root. The fix opens subdirectories without following symlinks so a swapped in link fails with an error instead of sending the traversal elsewhere.
You are affected if you are using a version that falls within the vulnerable range and you run rm recursively on a directory a local user can modify.
uu_rm is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.0.
Upgrade the uu_rm 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.