Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. tar
  4. ›
  5. CVE-2026-33055

CVE-2026-33055: tar-rs incorrectly ignores PAX size headers if header size is nonzero

March 20, 2026

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.

However, it was missed at the time that this project (the original Rust tar crate) had a conditional logic that skipped the PAX size header in the case that the base header size was nonzero - almost the inverse of the astral-tokio-tar issue.

The problem here is that 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.

References

  • github.com/advisories/GHSA-gchp-q4r4-x4ff
  • github.com/alexcrichton/tar-rs
  • github.com/alexcrichton/tar-rs/commit/de1a5870e603758f430073688691165f21a33946
  • github.com/alexcrichton/tar-rs/security/advisories/GHSA-gchp-q4r4-x4ff
  • nvd.nist.gov/vuln/detail/CVE-2026-33055

Code Behaviors & Features

Detect and mitigate CVE-2026-33055 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.45

Fixed versions

  • 0.4.45

Solution

Upgrade to version 0.4.45 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

cargo/tar/CVE-2026-33055.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:46 +0000.