tar

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.

0.4.46Latest, 18 May 2026
91MDownloads, last 90 days
0Advisories on the latest
9Advisories, all versions
MIT OR Apache-2.0Licence
748Stars

Known advisories

Severity Advisory Fix Published
Moderate tar has a PAX header desynchronization issue GHSA-3pv8-6f4r-ffg2 Fixed in 0.4.46 29 May 2026
Moderate tar-rs incorrectly ignores PAX size headers if header size is nonzero CVE-2026-33055 Fixed in 0.4.45 20 Mar 2026
Moderate tar-rs `unpack_in` can chmod arbitrary directories by following symlinks CVE-2026-33056 Fixed in 0.4.45 20 Mar 2026
`unpack_in` can chmod arbitrary directories by following symlinks CVE-2026-33056 Fixed in 0.4.45 19 Mar 2026
tar-rs incorrectly ignores PAX size headers if header size is nonzero CVE-2026-33055 Fixed in 0.4.45 19 Mar 2026
High Arbitrary file overwrite in tar-rs CVE-2018-20990 Fixed in 0.4.16 25 Aug 2021
High Links in archive can create arbitrary directories CVE-2021-38511 Fixed in 0.4.36 25 Aug 2021
Links in archive can create arbitrary directories CVE-2021-38511 Fixed in 0.4.36 19 Jul 2021
Links in archives can overwrite any existing file CVE-2018-20990 Fixed in 0.4.16 29 Jun 2018

In the news

On Hacker News

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