# tar (crates.io)

A Rust implementation of a TAR file reader and writer. This library does not
currently handle compression, but it is abstract over all I/O readers and
writers. Additionally, great lengths are taken to ensure that the entire
contents are never required to be entirely resident in memory all at once.

- Latest: 0.4.46 (2026-05-18)
- Licence: MIT OR Apache-2.0
- Downloads: 91033959 last 90 days
- Advisories on the latest version: 0

- GHSA-3pv8-6f4r-ffg2 MODERATE: tar has a PAX header desynchronization issue Fixed in 0.4.46.
- CVE-2026-33055 MODERATE: tar-rs incorrectly ignores PAX size headers if header size is nonzero Fixed in 0.4.45.
- CVE-2026-33056 MODERATE: tar-rs `unpack_in` can chmod arbitrary directories by following symlinks Fixed in 0.4.45.
- CVE-2026-33056 : `unpack_in` can chmod arbitrary directories by following symlinks Fixed in 0.4.45.
- CVE-2026-33055 : tar-rs incorrectly ignores PAX size headers if header size is nonzero Fixed in 0.4.45.
- CVE-2018-20990 HIGH: Arbitrary file overwrite in tar-rs Fixed in 0.4.16.
- CVE-2021-38511 HIGH: Links in archive can create arbitrary directories Fixed in 0.4.36.
- CVE-2021-38511 : Links in archive can create arbitrary directories Fixed in 0.4.36.
- CVE-2018-20990 : Links in archives can overwrite any existing file Fixed in 0.4.16.

Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
