Directory Traversal Affecting rust-tar package, versions <0.4.37-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.39% (69th 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-DEBIAN14-RUSTTAR-11767607
  • published10 Aug 2025
  • disclosed10 Aug 2021

Introduced: 10 Aug 2021

CVE-2021-38511  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Debian:14 rust-tar to version 0.4.37-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-tar package and not the rust-tar package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

An issue was discovered in the tar crate before 0.4.36 for Rust. When symlinks are present in a TAR archive, extraction can create arbitrary directories via .. traversal.

CVSS Base Scores

version 3.1