CVE-2024-0406: Mholt/archiver: path traversal vulnerability
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.
Other sources
Reference INC2833242:
----- There's an issue in https://github.com/mholt/archiver/ (version 3). v4 is not affected, as it doesn't support this functionality.
It's a path traversal when unpacking a specially crafted tar archive. I've originally reported this in Syft, but the underlying issue is in this library.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-0406?
CVE-2024-0406 is considered a high severity vulnerability due to its potential to allow unauthorized access to restricted files.
How do I fix CVE-2024-0406?
To remediate CVE-2024-0406, upgrade the mholt/archiver package to version 4 or later or ensure you are using an unaffected version of the package.
Which versions of mholt/archiver are affected by CVE-2024-0406?
CVE-2024-0406 affects mholt/archiver versions from 3.0.0 to 3.5.1 inclusive, as well as mholt package version prior to 4.
What kind of attacks can CVE-2024-0406 facilitate?
CVE-2024-0406 can facilitate attacks that involve the crafting of malicious tar files to gain unauthorized access to systems and files.
Is CVE-2024-0406 related to any specific platforms or environments?
CVE-2024-0406 impacts users of the mholt/archiver package across various environments, including those using Go.