Skip to main content

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in github.com/mholt/archiver

CVE-2024-0406

  • github.com/mholt/archiver
  • github.com/mholt/Archiver
  • github.com/Mholt/archiver
  • github.com/mholt/archiver/v3
  • github.com/mholt/archiver/v4
  • mholt/archiver
Severity Medium
Score 6.1/10

Summary

A flaw was discovered in the mholt/archiver package in versions 3.0.0 through 3.5.1. This flaw allows an attacker to create a specially crafted tar file, which, when unpacked, may allow access to restricted files or directories. This issue can allow the creation or overwriting of files with the user's or application's privileges using the library.

  • LOW
  • LOCAL
  • HIGH
  • UNCHANGED
  • REQUIRED
  • NONE
  • LOW
  • NONE

CWE-22 - Path Traversal

Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.

Advisory Timeline

  • Published