uu_touch is vulnerable to Race Condition (TOCTOU)
63
CVE Score
Medium
Race Condition (TOCTOU)
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.
Upgrade the uu_touch library to the patch version.
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.
0.0.1 - 0.9.0
Fixed in 0.10.0uu_touch is vulnerable to Race Condition (TOCTOU) in versions 0.0.1 - 0.9.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.