Arbitrary File Overwrite Affecting tar package, versions <0.4.16


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (31st 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-72298
  • published4 Oct 2018
  • disclosed29 Jun 2018
  • creditMax Justicz

Introduced: 29 Jun 2018

CVE-2018-20990  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade tar to version 0.4.16 or higher.

Overview

tar is a tar archive reading/writing library for Rust.

Affected versions f this package are vulnerable to Arbitrary File Overwrite. When unpacking a tarball with the unpack_in-family of functions it's intended that only files within the specified directory are able to be written. Tarballs with hard links or symlinks, can be used to overwrite any file on the filesystem.

CVSS Scores

version 3.1