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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.10% (percentile 65, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-rhh4-rh7c-7r5v, GO-2024-2698
- **Published:** 2024-04-06T16:11:02.643Z
- **Modified:** 2026-11-10T04:22:29.078Z

## Who should check

- Projects that depend on Go package github.com/mholt/archiver/v3 (\>= 3.0.0, \<= 3.5.1)
- Projects that depend on Go package github.com/mholt/archiver (\>= 3.0.0, \<= 3.5.1)
- Anyone running archiver \>= v3.0.0, \< \*
- Anyone running Red Hat OpenShift Container Platform 4.18 all versions
- Anyone running Red Hat Advanced Cluster Security 3 all versions
- Anyone running Red Hat Advanced Cluster Security 4 (versions: see the vendor advisory)

## Description

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.

## Affected and fixed versions

- Go `github.com/mholt/archiver/v3`: affected \>= 3.0.0, \<= 3.5.1; fixed no fix listed yet (osv)
- Go `github.com/mholt/archiver`: affected \>= 3.0.0, \<= 3.5.1; fixed no fix listed yet (osv)
- archiver: \>= v3.0.0, \< \* (cvelist)
- Red Hat OpenShift Container Platform 4.18: all versions (cvelist)
- Red Hat Advanced Cluster Security 3: all versions (cvelist)
- Red Hat Advanced Cluster Security 3: all versions (cvelist)
- Red Hat Advanced Cluster Security 3: all versions (cvelist)
- Red Hat Advanced Cluster Security 4: see vendor advisory (cvelist)
- Red Hat Advanced Cluster Security 4: see vendor advisory (cvelist)
- Red Hat Advanced Cluster Security 4: see vendor advisory (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-0406. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-0406.md
Affected: github.com/mholt/archiver/v3 >= 3.0.0, <= 3.5.1; github.com/mholt/archiver >= 3.0.0, <= 3.5.1
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for github.com/mholt/archiver/v3 (Go), github.com/mholt/archiver (Go), archiver, Red Hat OpenShift Container Platform 4.18, Red Hat Advanced Cluster Security 3, Red Hat Advanced Cluster Security 4: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-0406 being exploited?

There is no confirmed exploitation: CVE-2024-0406 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.10% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-0406?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-0406?

github.com/mholt/archiver/v3 \>= 3.0.0, \<= 3.5.1; github.com/mholt/archiver \>= 3.0.0, \<= 3.5.1.

### Is there a fix for CVE-2024-0406?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-0406?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-0406>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rhh4-rh7c-7r5v> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2698> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-0406> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-0406>
