Vulnerability · Published Apr 13, 2025 · Assigned by JFROG

CVE-2025-3445

High 8.1

In plain English

A high-severity path traversal in github.com/mholt/archiver/v3 from github.com/mholt/archiver/v3. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities).

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.5%top 56.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/mholt/archiverno fix listedGO-2025-3605
Gogithub.com/mholt/archiverno fix listedGHSA-7vpp-9cxj-q8gv
Gogithub.com/mholt/archiver/v3no fix listedGO-2025-3605
Gogithub.com/mholt/archiver/v3no fix listedGHSA-7vpp-9cxj-q8gv

Affected products (as reported)

VendorProductVersions
github.com/mholt/archiver/v3 github.com/mholt/archiver/v3 v3.0.0 – through v3.5.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L

References