Skip to content
OpenAdvisories

Description

tar-rs is a tar archive reading/writing library for Rust. Versions 0.4.44 and below have conditional logic that skips the PAX size header in cases where the base header size is nonzero. As part of CVE-2025-62518, the astral-tokio-tar project was changed to correctly honor PAX size headers in the case where it was different from the base header. This is almost the inverse of the astral-tokio-tar issue. Any discrepancy in how tar parsers honor file size can be used to create archives that appear differently when unpacked by different archivers. In this case, the tar-rs (Rust tar) crate is an outlier in checking for the header size - other tar parsers (including e.g. Go archive/tar) unconditionally use the PAX size override. This can affect anything that uses the tar crate to parse archives and expects to have a consistent view with other parsers. This issue has been fixed in version 0.4.45.

Affected products

VendorProductAffectedFixed
alexcrichton tar-rs < 0.4.45 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-tar 0.4.45-1 —
Debian 14 rustc 1.92.0+dfsg1-2 —
Debian 13 rust-tar No fix yet —
Debian 13 rustc 1.85.1+dfsg1-1+deb13u1 —
Debian 12 rustc +1 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-tar No fix yet —
Ubuntu 26.04 LTS rust-tar No fix yet —
Ubuntu 25.10 rust-tar No fix yet —
Ubuntu 24.04 LTS rust-tar No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rust-tar No fix yet —
Ubuntu Pro 20.04 LTS rust-tar No fix yet —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 below 0.11.0-1.amzn2023.0.3 ALAS2023-2026-1567
Amazon Linux 2023 cargo-c 0.10.19-1.amzn2023.0.2 ALAS2023-2026-1566
Amazon Linux 2023 clamd1.5 +8 1.5.1-1.amzn2023.0.5 ALAS2023-2026-1565
Amazon Linux 2023 rust +14 1.94.0-1.amzn2023.0.2 ALAS2023-2026-1568
Amazon Linux 2 rust +11 1.94.0-1.amzn2.0.2 ALAS2-2026-3246

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 clamav 1.5.2-2 —
Azure Linux 3 rpm-ostree 2024.4-10 —
Azure Linux 3 rust 1.75.0-28 —
Azure Linux 3 tardev-snapshotter No fix yet —
Azure Linux 3 trident 0.22.0-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling buck2 20260315-r4 —
Wolfi rolling cargo-c 0.10.21-r3 —
Wolfi rolling deno 2.7.8-r0 —
Wolfi rolling pixi 0.66.0-r3 —
Wolfi rolling qdrant 1.17.0-r7 —
Wolfi rolling rustup 1.29.0-r1 —
Wolfi rolling rye 0.44.0-r7 —
Wolfi rolling sccache 0.14.0-r3 —
Wolfi rolling wasm-pack 0.14.0-r4 —
Wolfi rolling wasmcloud 2.0.4-r0 —
Wolfi rolling zizmor 1.23.1-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io tar < 0.4.45 0.4.45 GHSA-gchp-q4r4-x4ff
crates.io tar >= 0.0.0-0, < 0.4.45 0.4.45 RUSTSEC-2026-0068

Advisories 5

References