tar-rs incorrectly ignores PAX size headers if header size is nonzero
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tarcrates.io | < 0.4.45 | 0.4.45 |
Affected products
28- osv-coords26 versionspkg:apk/chainguard/bootc-binarypkg:apk/chainguard/buck2pkg:apk/chainguard/cargo-cpkg:apk/chainguard/denopkg:apk/chainguard/fnmpkg:apk/chainguard/misepkg:apk/chainguard/pixipkg:apk/chainguard/qdrantpkg:apk/chainguard/rustuppkg:apk/chainguard/ryepkg:apk/chainguard/sccachepkg:apk/chainguard/typstpkg:apk/chainguard/wasmcloudpkg:apk/chainguard/wasm-packpkg:apk/chainguard/zizmorpkg:apk/wolfi/buck2pkg:apk/wolfi/cargo-cpkg:apk/wolfi/denopkg:apk/wolfi/pixipkg:apk/wolfi/qdrantpkg:apk/wolfi/rustuppkg:apk/wolfi/ryepkg:apk/wolfi/sccachepkg:apk/wolfi/wasmcloudpkg:apk/wolfi/wasm-packpkg:apk/wolfi/zizmor
< 1.10.0-r3+ 25 more
- (no CPE)range: < 1.10.0-r3
- (no CPE)range: < 20260315-r4
- (no CPE)range: < 0.10.21-r3
- (no CPE)range: < 2.7.8-r0
- (no CPE)range: < 1.39.0-r2
- (no CPE)range: < 2026.3.17-r0
- (no CPE)range: < 0.66.0-r3
- (no CPE)range: < 1.17.0-r7
- (no CPE)range: < 1.29.0-r1
- (no CPE)range: < 0.44.0-r7
- (no CPE)range: < 0.14.0-r3
- (no CPE)range: < 0.14.2-r2
- (no CPE)range: < 2.0.4-r0
- (no CPE)range: < 0.14.0-r4
- (no CPE)range: < 1.23.1-r4
- (no CPE)range: < 20260315-r4
- (no CPE)range: < 0.10.21-r3
- (no CPE)range: < 2.7.8-r0
- (no CPE)range: < 0.66.0-r3
- (no CPE)range: < 1.17.0-r7
- (no CPE)range: < 1.29.0-r1
- (no CPE)range: < 0.44.0-r7
- (no CPE)range: < 0.14.0-r3
- (no CPE)range: < 2.0.4-r0
- (no CPE)range: < 0.14.0-r4
- (no CPE)range: < 1.23.1-r4
- alexcrichton/tar-rsv5Range: < 0.4.45
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-gchp-q4r4-x4ffghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-33055ghsaADVISORY
- github.com/alexcrichton/tar-rs/commit/de1a5870e603758f430073688691165f21a33946ghsax_refsource_MISCWEB
- github.com/alexcrichton/tar-rs/security/advisories/GHSA-gchp-q4r4-x4ffghsax_refsource_CONFIRMWEB
- github.com/composefs/tar-rs/security/advisories/GHSA-gchp-q4r4-x4ffghsaWEB
- rustsec.org/advisories/RUSTSEC-2026-0068.htmlghsaWEB
- www.cve.org/CVERecordghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.