Path Traversal Affecting github.com/mholt/archiver package, versions *


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.04% (13th 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 Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMMHOLTARCHIVER-6227929
  • published5 Feb 2024
  • disclosed31 Jan 2024
  • creditUnknown

Introduced: 31 Jan 2024

CVE-2024-0406  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

github.com/mholt/archiver is a cross-platform, multi-format archive utility and Go library.

Affected versions of this package are vulnerable to Path Traversal due to improper path sanitization in the unpacking process of a specially crafted tar file. An attacker can create or overwrite files with the privileges of the user or application using the library.

Note: v4 is not affected, as it doesn't support this functionality.

CVSS Base Scores

version 3.1