From 7551cc1ddf066182c8edf614fdfd9fe0d8ddee83 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 14:47:50 +0000 Subject: [PATCH] Publish GHSA-j95m-rcjp-q69h --- .../GHSA-j95m-rcjp-q69h.json | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 advisories/github-reviewed/2025/03/GHSA-j95m-rcjp-q69h/GHSA-j95m-rcjp-q69h.json diff --git a/advisories/github-reviewed/2025/03/GHSA-j95m-rcjp-q69h/GHSA-j95m-rcjp-q69h.json b/advisories/github-reviewed/2025/03/GHSA-j95m-rcjp-q69h/GHSA-j95m-rcjp-q69h.json new file mode 100644 index 00000000000..e6810d42745 --- /dev/null +++ b/advisories/github-reviewed/2025/03/GHSA-j95m-rcjp-q69h/GHSA-j95m-rcjp-q69h.json @@ -0,0 +1,55 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-j95m-rcjp-q69h", + "modified": "2025-03-28T14:45:59Z", + "published": "2025-03-28T14:45:59Z", + "aliases": [], + "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": "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": null + } +} \ No newline at end of file