Vulnerabilities in pkg:golang/github.com/jaredallard/archives

PACKAGE
Advisory Identifier: GHSA-j95m-rcjp-q69h
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/jaredallard/archives

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/jaredallard/archives. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j95m-rcjp-q69h CVE-2025-64346 MODERATE github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVE-2025-64346 at a Glance

CVE Identifier CVE-2025-64346
GHSA Identifier GHSA-j95m-rcjp-q69h
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Github.com/jaredallard/archives
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/jaredallard/archives fixed: 1.0.1
Upgrade github.com/jaredallard/archives to 1.0.1
Verify Direct and Transitive Dependencies

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

### Impact A 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. The 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). The severity is also dependent on **arbitrary archives** being passed or not. Based on the above, severity high was picked to be safe. ### Patches Patched with the help of snyk and gosec in v1.0.1 ### Workarounds The only workaround is to manually validate archives before submitting them to this library, however that is not recommended vs upgrading to unaffected versions. ### References https://security.snyk.io/research/zip-slip-vulnerability

CVE-2025-64346 Affected Github.com/jaredallard/archives Versions

1 component(s)
Fixed Versions:
1.0.1
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?
CVE-2025-64346 is a security vulnerability in Github.com/jaredallard/archives involving github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Github.com/jaredallard/archives versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: github.com/jaredallard/archives.
What version fixes CVE-2025-64346?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/jaredallard/archives affected?
Yes, github.com/jaredallard/archives is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What CWE is associated with CVE-2025-64346?
CVE-2025-64346 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check Go dependencies for CVE-2025-64346?
Run the dependency tree command: 'inspect dependencies for github.com/jaredallard/archives'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}