uu_chmod is vulnerable to Race Condition (TOCTOU)
44
Medium Risk
chmod -R checks each entry without following symlinks, then opens subdirectories with an open that follows symlinks and does not recheck after the open. A local user who controls part of the tree can swap a directory for a symlink between the check and the open, so mode changes apply to files outside the intended tree. When root runs chmod -R over a user writable directory, this can widen permissions on sensitive files. The fix opens directories without following symlinks unless the -L option is given.
You are affected if you are using a version that falls within the vulnerable range and you run chmod recursively over a directory tree that a local user can modify during the operation.
uu_chmod is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.0.
Upgrade the uu_chmod 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.