Intel

AIKIDO-2026-440873

uu_touch is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU)CVE-2026-35360 Published Aug 11, 2026

63

Medium Risk

This Affects:

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

TL;DR

The touch utility creates a file by first checking that the target path is missing and then opening it with File::create, which internally passes O_TRUNC. Because the existence check and the open are separate steps, a concurrent local process can create the path or replace it with a symlink to an existing file inside that window. When that happens, the open truncates the unintended file and permanently destroys its contents, which is most damaging when touch runs in a shared or writable directory or with elevated privileges. The fix removes the prior existence check and opens the file without O_TRUNC, so a raced target is no longer truncated.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run touch on paths inside a directory that other local users can modify.

Background info

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

How to fix this

Upgrade the uu_touch library to the patch version.