Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

Source
Associated Vulnerability
Title:Mholt/archiver: path traversal vulnerability (CVE-2024-0406)
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.
Description
CVE-2024-0406 POC using symlinks
Readme
# CVE-2024-0406 Proof of Concept (PoC)

This repository contains a Proof of Concept (PoC) exploit for **CVE-2024-0406**, a vulnerability involving symlink-based tar archive extraction that allows for path traversal or file overwriting in affected systems.

More Details at [Path Traversal in mholt/archiver](https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMHOLTARCHIVER-6227929)

## Vulnerability Details
- CVE ID: CVE-2024-0406
- Description: A flaw in tar archive extraction libraries or applications that fail to sanitize symlinks, enabling attackers to overwrite arbitrary files via path traversal when a crafted archive is extracted.
- Affected Systems: Applications using libraries like `mholt/archiver/v3` 3.5.0 and prior.
- Impact: Arbitrary file overwrite, potentially leading to privilege escalation or unauthorized access.

**⚠️ Disclaimer**: This PoC is for educational and security research purposes only. Use it only in environments where you have explicit permission to test. Unauthorized use may violate laws or terms of service.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →