Intel

AIKIDO-2026-440873

uu_touch is vulnerable to Race Condition (TOCTOU)

CVE-2026-35360Published Aug 11, 2026
August 11, 2026

63

CVE Score

Medium

Race Condition (TOCTOU)

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.

How do I fix this?

Upgrade the uu_touch library to the patch version.

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.

Package

Versions

0.0.1 - 0.9.0

Fixed in 0.10.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea