Access of Resource Using Incompatible Type ('Type Confusion') 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 Learn

Learn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-TAR-15703313
  • published20 Mar 2026
  • disclosed20 Mar 2026
  • creditSergei Zimmerman

Introduced: 20 Mar 2026

NewCVE-2026-33055  (opens in a new tab)
CWE-843  (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 Access of Resource Using Incompatible Type ('Type Confusion') through improper handling of PAX size headers in the archive parsing. An attacker can cause inconsistent parsing of archive contents across different tar implementations by crafting a malicious archive with conflicting size headers, potentially leading to the unintended extraction of files such as symlinks that are skipped by other parsers.

CVSS Base Scores

version 4.0
version 3.1