UNIX Symbolic Link (Symlink) Following Affecting tar package, versions <0.4.45


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-TAR-15703420
  • published20 Mar 2026
  • disclosed20 Mar 2026
  • creditSergei Zimmerman

Introduced: 20 Mar 2026

NewCVE-2026-33056  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade tar to version 0.4.45 or higher.

Overview

tar is 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.

Affected versions of this package are vulnerable to UNIX Symbolic Link (Symlink) Following in the unpack_dir() function. An attacker can change the permissions of arbitrary directories outside the intended extraction root by crafting a tar archive containing a symbolic link followed by a directory entry with the same name, causing the process to follow the symlink and apply permission changes to the symlink target.

CVSS Base Scores

version 4.0
version 3.1