CVE-2025-3445: Path Traversal Vulnerability in github.com/mholt/archiver Package

github.com/mholt/archiver Updated 02 Oct 2025

Summary

05/08/2025
No i
High
8.1

CVE-2025-3445: Vulnerable to Path Traversal via Crafted ZIP File in github.com/mholt/archiver. Affected versions are not published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The github.com/mholt/archiver package is a Go library designed for handling various archive formats, including ZIP files. It provides functionalities for creating and extracting archives, making it a popular choice for developers needing to manage compressed files. However, this package has been identified to have a vulnerability that allows for path traversal attacks when processing crafted ZIP files, potentially leading to unauthorized file access on the system.

Vulnerability Detail

The vulnerability, identified as CVE-2025-3445, originates from the way the archiver package processes ZIP files. Attackers can exploit this flaw by crafting malicious ZIP files that contain paths designed to traverse the file system. This could allow unauthorized access to sensitive files outside the intended directory, leading to data breaches or system compromise. The vulnerability affects all versions of the package prior to the patch.

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

If updating the package is not immediately feasible, a temporary workaround is to implement additional validation on the paths extracted from ZIP files. Ensure that the paths do not contain any traversal sequences (like '../') before processing them. This can be done by checking the extracted file paths against a whitelist of allowed directories.

Conclusion

The CVE-2025-3445 vulnerability in the github.com/mholt/archiver package poses a significant risk by allowing path traversal through crafted ZIP files. It is crucial to update to the latest version of the package to mitigate this risk. Additionally, implementing path validation can serve as a temporary measure until an update can be applied.

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

Share this vulnerability

FAQ

CVE-2025-3445 is a vulnerability in the github.com/mholt/archiver package that allows for path traversal attacks via crafted ZIP files.

If your application uses the affected version of the archiver package, it may allow attackers to access sensitive files on your server, leading to potential data breaches.

All versions of the github.com/mholt/archiver package prior to the patched version are affected by this vulnerability.

Yes, you can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Implement a temporary workaround by validating extracted file paths to prevent traversal sequences before processing them.

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