uucore is vulnerable to Race Condition (TOCTOU)
44
Medium Risk
The recursive descent used by chown -R and chgrp -R lives in the shared uucore permissions walker, which stats each entry without following symlinks but then reopens each subdirectory in follow mode without re-verifying the opened descriptor. A local user who can write inside the processed tree can replace a real subdirectory with a symlink between the check and the descent open, so the walk resolves outside the intended tree. When a privileged process runs a recursive ownership change over such a tree, ownership of files outside it can be reassigned and used for privilege escalation. The fix opens descent directories with O_NOFOLLOW unless following is explicitly requested, so a swapped-in symlink makes the open fail instead of redirecting the walk.
You are affected if you are using a version that falls within the vulnerable range.
uucore is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.0.
Upgrade the uucore 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