Skip to content
OpenAdvisories
High · 8.1 CVE-2025-3445 EUVD-2025-10908GHSA-7vpp-9cxj-q8gvGO-2025-3605

mholt/archiver Vulnerable to Path Traversal via Crafted ZIP File

Published Apr 13, 2025 · Updated Apr 14, 2025 · Assigned by JFROG

Description

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.

Affected products

VendorProductAffectedFixed
github.com/mholt/archiver/v3 github.com/mholt/archiver/v3 v3.0.0 – ≤ v3.5.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed forgejo 10.0.3-2.1 openSUSE-SU-2025:15001-1
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250807T150727-1.1 openSUSE-SU-2025:15424-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling filebrowser +1 2.32.0-r7 —
Wolfi rolling kots 1.128.3-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/mholt/archiver <= 3.5.1 — GHSA-7vpp-9cxj-q8gv
Go github.com/mholt/archiver all versions — GO-2025-3605
Go github.com/mholt/archiver/v3 <= 3.5.1 — GHSA-7vpp-9cxj-q8gv
Go github.com/mholt/archiver/v3 all versions — GO-2025-3605

Advisories 2

References