Advisory

GHSA-j95m-rcjp-q69h

Also known as: CVE-2025-64346, GO-2025-3581

Summary

github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-28 14:45 UTC
Modified
2025-11-07 16:43 UTC

Affected packages and fixes

github.com/jaredallard/archives

Go · All systems

Affected

  • introduced 0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences