uu_touch is vulnerable to Race Condition (TOCTOU)
63
Medium Risk
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.
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.
uu_touch is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.0.
Upgrade the uu_touch 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