Intel

AIKIDO-2026-198533

uucore is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU)GHSA-wf57-9jfx-969p Published Aug 11, 2026

44

Medium Risk

This Affects:

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

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

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

How to fix this

Upgrade the uucore library to the patch version.