CVE-2025-64346: Github.com/jaredallard/archives Path Traversal Vulnerability
MODERATECVE-2025-64346 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/jaredallard/archives libraries in the Go ecosystem. The issue involves github.com/jaredallard/archives has improper limitation of a pathname to a restricted directory ('path traversal'). Remediation is available by upgrading affected packages to version 1.0.1.
CVE-2025-64346 at a Glance
How to Fix CVE-2025-64346
To remediate this vulnerability, upgrade all affected Github.com/jaredallard/archives dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/jaredallard/archives to 1.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/jaredallard/archives
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-64346, inspect your project dependencies for Github.com/jaredallard/archives:
inspect dependencies for github.com/jaredallard/archives
Analyze the terminal output to locate any version of Github.com/jaredallard/archives in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Github.com/jaredallard/archives, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64346 Affected Github.com/jaredallard/archives Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/jaredallard/archives
|
Go |
< 1.0.1
|
1.0.1
|
References
Frequently Asked Questions
What is CVE-2025-64346?
Which Github.com/jaredallard/archives versions are affected?
What version fixes CVE-2025-64346?
Is github.com/jaredallard/archives affected?
What CWE is associated with CVE-2025-64346?
How can I check Go dependencies for CVE-2025-64346?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j95m-rcjp-q69h",
"modified" : "2025-11-07T16:43:11Z",
"published" : "2025-03-28T14:45:59Z",
"aliases" : [ "CVE-2025-64346" ],
"summary" : "github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
"details" : "### Impact\n\nA malicious user could feed a specially crafted archive to this library causing RCE, modification of files or other bad things in the context of whatever user is running this library as, through the program that imports it.\n\nThe severity highly depends on the user's permissions and environment it is being ran in (e.g., non root, read only root container would likely have no impact vs running something as root on a production system).\n\nThe severity is also dependent on **arbitrary archives** being passed or not.\n\nBased on the above, severity high was picked to be safe.\n\n### Patches\n\nPatched with the help of snyk and gosec in v1.0.1\n\n### Workarounds\n\nThe only workaround is to manually validate archives before submitting them to this library, however that is not recommended vs upgrading to unaffected versions.\n\n### References\n\nhttps://security.snyk.io/research/zip-slip-vulnerability",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/jaredallard/archives"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jaredallard/archives/security/advisories/GHSA-j95m-rcjp-q69h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64346"
}, {
"type" : "WEB",
"url" : "https://github.com/jaredallard/archives/commit/3bddec7bd3f38afbe97ae61d1c8a8487e9ea4ef1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jaredallard/archives"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-28T14:45:59Z",
"nvd_published_at" : "2025-11-07T06:15:33Z"
}
}