CVE-2025-3445: Path Traversal Vulnerability in github.com/mholt/archiver Package
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/mholt/archiver.