CVE-2025-3445: mholt/archiver Path Traversal Vulnerability in ZIP File Handling

github.com/mholt/archiver Updated 02 Oct 2025

Summary

14/04/2025
No i
High
8.1

CVE-2025-3445: mholt/archiver Vulnerable to Path Traversal via Crafted ZIP File. Affects github.com/mholt/archiver versions < 3.5.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

mholt/archiver is a Go library designed for archiving and unarchiving files in various formats, including ZIP and TAR. It provides a simple interface for developers to manage file compression and extraction. However, the library has been identified as vulnerable to a Path Traversal attack, specifically through crafted ZIP files, which can lead to severe security issues.

Vulnerability Detail

A Path Traversal 'Zip Slip' vulnerability exists in mholt/archiver, allowing attackers to exploit crafted ZIP files containing symlinks that traverse directories. When the archiver.Unarchive function is used, these malicious ZIP files can overwrite or create files on the system with the same privileges as the executing application. This can result in sensitive files being compromised, privilege escalation, and potential code execution. The vulnerability affects versions up to 3.5.1 of the library.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary measure, avoid using the Unarchive function with untrusted ZIP files. Implement additional validation checks on ZIP file contents before extraction to mitigate the risk of exploitation.

Conclusion

The mholt/archiver library is vulnerable to a Path Traversal attack through crafted ZIP files, which can lead to serious security risks. Users are advised to update to the mholt/archives library or implement workarounds until a permanent fix is applied. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for github.com/mholt/archiver →

Share this vulnerability

FAQ

The CVSS score for this vulnerability is 8.1, indicating a high severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can lead to sensitive file overwrites, privilege escalation, and potentially arbitrary code execution.

The original mholt/archiver project has been deprecated, and while a fix was implemented, it has not been officially released. Transitioning to mholt/archives is recommended.

If an immediate update is not possible, avoid using the vulnerable Unarchive function and implement strict validation on ZIP file contents.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/mholt/archiver.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback