Advisory

GHSA-7vpp-9cxj-q8gv

Also known as: CVE-2025-3445, GO-2025-3605

Summary

mholt/archiver Vulnerable to Path Traversal via Crafted ZIP File

Details

A Path Traversal "Zip Slip" vulnerability has been identified in mholt/archiver in Go. This vulnerability allows using a crafted ZIP file containing path traversal symlinks to create or overwrite files with the user's privileges or application utilizing the library.

When using the archiver.Unarchive functionality with ZIP files, like this: archiver.Unarchive(zipFile, outputDir),  A crafted ZIP file can be extracted in such a way that it writes files to the affected system with the same privileges as the application executing this vulnerable functionality. Consequently, sensitive files may be overwritten, potentially leading to privilege escalation, code execution, and other severe outcomes in some cases.

It's worth noting that a similar vulnerability was found in TAR files (CVE-2024-0406). Although a fix was implemented, it hasn't been officially released, and the affected project has since been deprecated. The successor to mholt/archiver is a new project called mholt/archives, and its initial release (v0.1.0) removes the Unarchive() functionality.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-04-14 00:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/mholt/archiver

Go · All systems

Affected

  • introduced 0, last affected 3.5.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/mholt/archiver/v3

Go · All systems

Affected

  • introduced 0, last affected 3.5.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences