Intel

AIKIDO-2026-10914

tar is vulnerable to PAX Header Desynchronization

PAX Header DesynchronizationGHSA-3pv8-6f4r-ffg2 Published 2 days ago

53

Medium Risk

This Affects:

RUSTtar
0.0.1 - 0.4.45
Fixed in 0.4.46
Are you affected? Scan for Free

TL;DR

When a tar stream places a PAX extended header before intermediary extension records such as a GNU longname block, the crate applies pending PAX metadata to those extension headers instead of the next file entry. This desynchronizes parsing relative to POSIX pax and other tar implementations, so a crafted archive can list or extract different members depending on the parser. An attacker can use that differential to smuggle or hide files during extraction. The fix skips applying PAX overrides to extension header types and associates them only with the following file entry.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

tar is vulnerable to PAX Header Desynchronization in versions 0.0.1 - 0.4.45.

How to fix this

Upgrade the tar library to version 0.4.46.