GHSA-j95m-rcjp-q69h

Suggest an improvement
Source
https://github.com/advisories/GHSA-j95m-rcjp-q69h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-j95m-rcjp-q69h/GHSA-j95m-rcjp-q69h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j95m-rcjp-q69h
Aliases
Published
2025-03-28T14:45:59Z
Modified
2025-04-01T22:42:10.781085Z
Severity
  • 6.0 (Medium) CVSS_V4 - 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 CVSS Calculator
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

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-28T14:45:59Z"
}
References

Affected packages

Go / github.com/jaredallard/archives

Package

Name
github.com/jaredallard/archives
View open source insights on deps.dev
Purl
pkg:golang/github.com/jaredallard/archives

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.1