CVE-2025-3445 mholt/archiver Vulnerable to Path Traversal via Crafted ZIP File

High 8.1 Published Updated

A path traversal vulnerability in the mholt/archiver Go library allows attackers to overwrite files via crafted ZIP archives, potentially leading to code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-3445?

CVE-2025-3445 is a high-severity path traversal vulnerability in github.com/mholt/archiver/v3, published on 13 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-22

Which versions are affected by CVE-2025-3445?

6 open source packages ship an affected version, including github.com/mholt/archiver/v3 and github.com/mholt/archiver.

PackageAffectedFixed in
github.com/mholt/archiver/v3 GoAll versionsNone
github.com/mholt/archiver/v3 GoAll versions to 3.5.1None
github.com/mholt/archiver/v3 GoAll versions to 3.5.1None
github.com/mholt/archiver GoAll versionsNone
github.com/mholt/archiver GoAll versions to 3.5.1None
github.com/mholt/archiver GoAll versions to 3.5.1None
Linux distribution packages (1)
forgejo openSUSE:TumbleweedAll versions10.0.3-2.1

How do I fix CVE-2025-3445?

Product is end of life, replace it.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-3445 being exploited?

There is no known exploitation of CVE-2025-3445 in the wild and no public exploit code.

Sources

Also known as GHSA-7vpp-9cxj-q8gv, GO-2025-3605, MINI-4pvv-3gg5-9fmr, MINI-5fjx-vf2p-58pf, MINI-5x9p-9gjg-7789, MINI-c4h3-v36j-448f and 3 more.

Is CVE-2025-3445 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free