CVE-2025-64346 archives: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
A path traversal vulnerability in the Go archives library allows attackers to execute code or modify files via malicious archives.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-64346?
CVE-2025-64346 is a medium-severity path traversal vulnerability in jaredallard archives, published on 7 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.
Weakness: CWE-22
Which versions are affected by CVE-2025-64346?
3 open source packages ship an affected version, including github.com/jaredallard/archives.
| Package | Affected | Fixed in |
|---|---|---|
github.com/jaredallard/archives Go | All versions | 1.0.1 |
github.com/jaredallard/archives Go | All versions | 1.0.1 |
github.com/jaredallard/archives Go | All versions | 1.0.1 |
How do I fix CVE-2025-64346?
Upgrade github.com/jaredallard/archives to 1.0.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-64346 being exploited?
There is no known exploitation of CVE-2025-64346 in the wild and no public exploit code.
Sources
Also known as GHSA-j95m-rcjp-q69h, GO-2025-3581.