Intel

AIKIDO-2026-728563

uu_head is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU)GHSA-g68m-fmg3-7f8c Published 3 days ago

22

Low Risk

This Affects:

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

TL;DR

head uses a separate metadata call on a target path to decide header printing and directory handling, then opens the file in a second step. A local user can swap the path between the check and the open, so head reads a different file than the one from the metadata call. The fix opens the file first and reads metadata from the open descriptor so both operations refer to the same inode.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run head on paths a local user can replace.

Background info

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

How to fix this

Upgrade the uu_head library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform