Intel

AIKIDO-2026-294878

uu_chmod is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU)GHSA-jvc6-vj8m-5q6h Published 4 days ago

44

Medium Risk

This Affects:

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

TL;DR

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.

Who does this affect?

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.

Background info

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

How to fix this

Upgrade the uu_chmod 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