Intel

AIKIDO-2026-397311

uu_rm is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU)GHSA-32xv-mj27-3qgj Published 4 days ago

60

Medium Risk

This Affects:

RUSTuu_rm
0.0.1 - 0.9.0
Fixed in 0.10.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

uu_rm is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.0.

How to fix this

Upgrade the uu_rm library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform