Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mholt/archiver
  4. ›
  5. CVE-2024-0406

CVE-2024-0406: Archiver Path Traversal vulnerability

April 6, 2024 (updated May 7, 2025)

A flaw was discovered in the mholt/archiver package. 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.

References

  • access.redhat.com/errata/RHSA-2025:2449
  • access.redhat.com/security/cve/CVE-2024-0406
  • bugzilla.redhat.com/show_bug.cgi?id=2257749
  • github.com/advisories/GHSA-rhh4-rh7c-7r5v
  • github.com/mholt/archiver
  • nvd.nist.gov/vuln/detail/CVE-2024-0406
  • pkg.go.dev/vuln/GO-2024-2698

Code Behaviors & Features

Detect and mitigate CVE-2024-0406 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 starting from 3.0.0 up to 3.5.1

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/mholt/archiver/CVE-2024-0406.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:56 +0000.