CVE-2024-0406: Mholt/archiver: path traversal vulnerability

Published Jan 10, 2024
·
Updated

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

6 affected componentsFixes available
redhat/mholt<4
4
mholt archiver>=3.0.0<4.0.0
redhat Advanced Cluster Security=3.0
redhat OpenShift Container Platform>=4.18<4.18.4
go/github.com/mholt/archiver>=3.0.0<=3.5.1
go/github.com/mholt/archiver/v3>=3.0.0<=3.5.1

Event History

Apr 6, 2024
CVE Published
via MITRE·04:11 PM
Data Sourced
via MITRE·04:11 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:31 PM
Data Sourced
via GitHub·06:31 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203